{"cve":"CVE-2025-30222","nvd":{"published":"2025-03-25T23:15:36.707","modified":"2026-06-17T09:08:23.090","status":"Deferred","description":"Shescape is a simple shell escape library for JavaScript. Versions 1.7.2 through 2.1.1 are vulnerable to potential environment variable exposure on Windows with CMD. This impact users of Shescape on Windows that explicitly configure `shell: 'cmd.exe'` or `shell: true` using any of `quote`/`quoteAll`/`escape`/`escapeAll`. An attacker may be able to get read-only access to environment variables. This bug has been patched in v2.1.2. For those who are already using v2 of Shescape, no further changes are required. Those who are are using v1 of Shescape should follow the migration guide to upgrade to v2. There is no plan to release a patch compatible with v1 of Shescape. As a workaround, users can remove all instances of `%` from user input before using Shescape.","cvss_v4":{"vector":"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","score":2.1},"cvss_v3":null,"cwes":["CWE-200"],"references":["https://github.com/ericcornelissen/shescape/commit/0a81f1eb077bab8caae283a2490cd7be9af179c6","https://github.com/ericcornelissen/shescape/pull/1916","https://github.com/ericcornelissen/shescape/releases/tag/v2.1.2","https://github.com/ericcornelissen/shescape/security/advisories/GHSA-66pp-5p9w-q87j","https://github.com/ericcornelissen/shescape/security/advisories/GHSA-66pp-5p9w-q87j"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:28.034033815+00:00"},"epss":{"cve":"CVE-2025-30222","score":0.00193,"percentile":0.09045,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-66pp-5p9w-q87j","url":"https://osv.dev/vulnerability/GHSA-66pp-5p9w-q87j","summary":"Shescape has potential environment variable exposure on Windows with CMD","modified":"2026-09-10T03:50:22.897984593Z","packages":[{"ecosystem":"npm","name":"shescape","purl":"pkg:npm/shescape","ranges":[">=1.7.2 <2.1.2"],"fixed":["2.1.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}