Shell Escape Vulnerability in Shescape for JavaScript on Windows
CVE-2025-30222

2.1LOW

Key Information:

Status
Vendor
CVE Published:
25 March 2025

What is CVE-2025-30222?

The Shescape library for JavaScript, utilized for shell escape functionalities, is vulnerable across versions 1.7.2 to 2.1.1 on Windows when specifically configured for the CMD shell. Users who set the shell: 'cmd.exe' or shell: true, along with options like quote, quoteAll, escape, or escapeAll, may inadvertently expose their environment variables to potential read-only access by attackers. This vulnerability has been resolved in version 2.1.2. Users on version 1 should transition to the latest version using the provided migration guide, as no additional patches for version 1 are planned. As an interim measure, removing instances of % from user inputs before processing them through Shescape can mitigate the risk.

Affected Version(s)

shescape >= 1.7.2, < 2.1.2

References

CVSS V4

Score:
2.1
Severity:
LOW
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

.