Intel

AIKIDO-2026-997639

dart_console is vulnerable to Improper Initialization

GHSA-hm5v-7jmx-5c8vPublished 4 days ago
November 16, 2026

43

CVE Score

Medium

Improper Initialization

Are you affected? Scan for Free

TL;DR

On Windows, raw key reads can set the console input mode using unrelated flags combined with bitwise AND. The mode may be cleared instead of restored, changing echo, line-input, and signal-processing behavior after a key read. The fix saves the original mode, checks mode changes, and restores the saved settings.

How do I fix this?

Upgrade the dart_console library to the patch version.

Who does this affect?

You are affected if you use Console.readKey or Console.readKeys on Windows.

Versions

0.0.1 - 5.1.1

Fixed in 5.1.2

Background info

dart_console is vulnerable to Improper Initialization in versions 0.0.1 - 5.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea