CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
0.30% in 30 days
higher than 24% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
ericcornelissenshescape>= 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?

EcosystemPackageAffectedFixed inAdvisory
npmshescape>= 1.7.2, < 2.1.22.1.2GHSA-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?

ScoreVersionVectorSource
Low 2.1CVSS 4.0CVSS: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:UGitHub_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?

Where are the vendor advisories and references?

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?

Every CVE in shescape

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.