-
CVSS Score
-Basic Information
CVE ID
-
GHSA ID
-
EPSS Score
-
CWE
-
Published
-
Updated
-
KEV Status
-
Technology
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| shescape | npm |
The vulnerability stems from improper escaping logic in the Windows CMD argument handler. The commit diff shows a fundamental rewrite of the escapeArg function - it replaced a stateful quote-count-dependent escaping mechanism with a uniform pattern that escapes special characters regardless of quote context. The tests demonstrate that before the fix, inputs like '"%PATH%' would not escape the '%' characters when quotes were present, while after the fix they receive the required '^' escapes. This matches the vulnerability description where unescaped '%' characters in CMD context lead to environment variable exposure.