Shell Escape Vulnerability in Shescape Library for JavaScript
CVE-2026-73412
6.3MEDIUM
What is CVE-2026-73412?
The Shescape library for JavaScript suffers from a vulnerability that affects users on Unix systems where the default shell is set to Zsh. This issue arises when using the escape and escapeAll functions in versions prior to 2.1.14 and 3.0.1, especially when the Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST are enabled. An attacker can exploit these vulnerabilities through home directory expansion and extended glob syntax, potentially revealing sensitive filenames and directory structures, which could be leveraged to gain further access to system information.
Affected Version(s)
shescape < 2.1.14 < 2.1.14
shescape >= 3.0.0, < 3.0.1 < 3.0.0, 3.0.1
