Home / ericcornelissen / shescape / CVE-2025-30222
CVE-2025-30222: is it exploited, and which versions of ericcornelissen shescape are affected and fixed?
CVE-2025-30222 is an information disclosure vulnerability in ericcornelissen shescape. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: shescape from 1.7.2 before 2.1.2 (GitHub advisory GHSA-66pp-5p9w-q87j). Fixed in 2.1.2 (GitHub advisory GHSA-66pp-5p9w-q87j). Severity: Low (2.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2025-30222?
Shescape has potential environment variable exposure on Windows with CMD
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.
From the CVE record by GitHub_M, last updated March 26, 2025, 13:30 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ericcornelissen | shescape | >= 1.7.2, < 2.1.2 |
As the CVE record by GitHub_M states it, last updated March 26, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | shescape | >= 1.7.2, < 2.1.2 | 2.1.2 | GHSA-66pp-5p9w-q87j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 26, 2025. Summary: Shescape has potential environment variable exposure on Windows with CMD.
How severe is CVE-2025-30222?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-30222 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, March 26, 2025)
- EPSS
- 0.30% probability of exploitation activity in the next 30 days, percentile 24.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Where are the vendor advisories and references?
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-66pp-5p9w-q87j x_refsource_CONFIRM
- https://github.com/ericcornelissen/shescape/pull/1916 x_refsource_MISC
- https://github.com/ericcornelissen/shescape/commit/0a81f1eb077bab8caae283a2490cd7be9af179c6 x_refsource_MISC
- https://github.com/ericcornelissen/shescape/releases/tag/v2.1.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 18, 2025
- Published
- March 25, 2025, 23:00 UTC
- CVE record updated
- March 26, 2025, 13:30 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:08 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect shescape?
- Aug 15, 2026CVE-2026-73055 ericcornelissen shescape: improper output encoding
- Aug 12, 2026CVE-2026-73414 ericcornelissen shescape: OS command injection
- Aug 12, 2026CVE-2026-73413 ericcornelissen shescape: denial of service (uncontrolled resource consumption)
- Aug 12, 2026CVE-2026-73412 ericcornelissen shescape: OS command injection
- Aug 12, 2026CVE-2026-73411 ericcornelissen shescape: improper output encoding
- Mar 11, 2026CVE-2026-32094 ericcornelissen shescape: information disclosure
- Aug 23, 2023CVE-2023-40185 ericcornelissen shescape: improper Neutralization of Escape, Meta, or Control Sequences
- Jun 23, 2023CVE-2023-35931 ericcornelissen shescape: cleartext Storage of Sensitive Information in an Environment Variable
Questions about CVE-2025-30222
Is CVE-2025-30222 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.30% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of ericcornelissen shescape are affected by CVE-2025-30222?
shescape from 1.7.2 before 2.1.2, per the GitHub advisory GHSA-66pp-5p9w-q87j. The tables above give every range the sources list.
Which version fixes CVE-2025-30222?
2.1.2, per the GitHub advisory GHSA-66pp-5p9w-q87j. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-30222?
Low (2.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-30222?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.