CVE-2025-30222
JavaScript vulnerability analysis and mitigation

Overview

Shescape, a shell escape library for JavaScript, was found to have a vulnerability (CVE-2025-30222) affecting versions 1.7.2 through 2.1.1. The vulnerability was discovered on March 25, 2025, and impacts users of Shescape on Windows systems when specifically configured with shell: 'cmd.exe' or shell: true (GitHub Advisory).

Technical details

The vulnerability stems from improper escaping of the % character when using CMD on Windows systems. When using any of the functions quote/quoteAll/escape/escapeAll, the library fails to properly escape environment variable references, which could expose sensitive information. The issue has been assigned a CVSS v4.0 score of 2.1 (LOW) with the vector string CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U and is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) (NVD).

Impact

The vulnerability allows attackers to potentially gain read-only access to environment variables on affected Windows systems. This could lead to the disclosure of sensitive information stored in environment variables, such as API keys, tokens, or system configuration details (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2.1.2. Users of Shescape v2 can upgrade directly to this version. Users of v1 are advised to follow the migration guide to upgrade to v2, as no patch will be released for v1. As a temporary workaround, users can remove all instances of % from user input before using Shescape (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management