# CVE-2026-73414: Shescape: Shell injection via unescaped parentheses on Windows with CMD

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-07-24T22:34:23.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-w4hw-qcx7-56pr
- Weaknesses: CWE-78, CWE-150
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, getEscapeFunction in src/internal/win/cmd.js does not escape `(` and `)` when applications use the escape or escapeAll APIs on Windows with shell set to cmd.exe, or with shell set to true when CMD is the default. An attacker-controlled argument can break out of a parenthesized CMD construct and inject shell syntax depending on the original command, resulting in arbitrary command execution. This issue is fixed in versions 2.1.14 and 3.0.1.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: < 2.1.14; >= 3.0.0, < 3.0.1
- shescape (npm): before 2.1.14; from 3.0.0 before 3.0.1

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-w4hw-qcx7-56pr> (web)
- <https://github.com/ericcornelissen/shescape/pull/2649> (web)
- <https://github.com/ericcornelissen/shescape/pull/2651> (web)
- <https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de> (web)
- <https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f> (web)
- <https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14> (web)
- <https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1> (web)
- <https://github.com/ericcornelissen/shescape> (package)
- <https://github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/migration.md> (web)

## Sources

- CVE List: [CVE-2026-73414](https://www.cve.org/CVERecord?id=CVE-2026-73414), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-w4hw-qcx7-56pr](https://github.com/advisories/GHSA-w4hw-qcx7-56pr), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-73414](https://nvd.nist.gov/vuln/detail/CVE-2026-73414), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73414 · Whole record: https://cve.day/CVE-2026-73414.json · Rebuilt by cve.day 2026-11-25T22:59:32.648Z
