Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-30222— Shescape has potential environment variable exposure on Windows with CMD

Quick assessment

Affected
ericcornelissen shescape
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Shescape是Eric Cornelissen个人开发者的一个用于 JavaScript 的简单外壳转义程序包。 Shescape 1.7.2至2.1.1版本存在信息泄露漏洞,该漏洞源于Windows上使用CMD时可能暴露环境变量。

AI Predicted 4.3 Difficulty: Easy EPSS 0.19% · P8
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-30222

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Shescape has potential environment variable exposure on Windows with CMD
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
Shescape 信息泄露漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Shescape是Eric Cornelissen个人开发者的一个用于 JavaScript 的简单外壳转义程序包。 Shescape 1.7.2至2.1.1版本存在信息泄露漏洞,该漏洞源于Windows上使用CMD时可能暴露环境变量。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ericcornelissen shescape >= 1.7.2, < 2.1.2 -

II. Public POCs for CVE-2025-30222

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-30222

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-30222 (2)

Vendor Advisories for CVE-2025-30222 (1)

Proof of Concept for CVE-2025-30222 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-30222

No comments yet


Leave a comment