{"answers":{"affected":"2 open source packages ship an affected version, including shescape.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30222 exists.","fix":"Upgrade shescape to 2.1.2 or later.","what":"CVE-2025-30222 is a low-severity vulnerability in ericcornelissen shescape, published on 25 Mar 2025."},"fix_prompt":"Check this codebase for CVE-2025-30222 and fix it if it is affected.\n\nWhat it is: CVE-2025-30222 is a low-severity vulnerability in ericcornelissen shescape, published on 25 Mar 2025. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30222 exists.\n\nAffected packages and fixed versions:\n- shescape (npm): affected from 1.7.2; fixed in 2.1.2\n- shescape (npm): affected from 1.7.2; fixed in 2.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-30222/ (Markdown: https://insights.sbomify.com/CVE-2025-30222/index.md)","id":"CVE-2025-30222","markdown":"https://insights.sbomify.com/CVE-2025-30222/index.md","name":"CVE-2025-30222","record":{"aliases":["GHSA-66pp-5p9w-q87j"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":2.1,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Shescape has potential environment variable exposure on Windows with CMD","id":"CVE-2025-30222","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input","id":"CVE-2025-30223"},"packages":[{"ecosystem":"npm","fixed":["2.1.2"],"introduced":["1.7.2"],"last_affected":[],"package":"shescape","purl":null,"source":"GHSA-66pp-5p9w-q87j"},{"ecosystem":"npm","fixed":["2.1.2"],"introduced":["1.7.2"],"last_affected":[],"package":"shescape","purl":"pkg:npm/shescape","source":"GHSA-66pp-5p9w-q87j"}],"prev":{"headline":"Pitchfork HTTP Request/Response Splitting vulnerability","id":"CVE-2025-30221"},"products":["shescape"],"published":"2025-03-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-26","vendors":["ericcornelissen"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-30222/"}