CVE-2023-35931
MEDIUM 4.3CVSS 3.1Shescape potential environment variable exposure on Windows with CMD
Shescape is a simple shell escape library for JavaScript. An attacker may be able to get read-only access to environment variables. This bug has been patched in version 1.7.1.
- Published
- 23 Jun 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-526
- Also known as
- GHSA-3g7p-8qhx-mc8r
- Sources
- NVDJSONOSV GHSA-3g7p-8qhx-mc8rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shescape_project | shescapecpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* |
< 1.7.1 | 1.7.1 |
| OSV | npm | shescape | < 1.7.1 | 1.7.1 |
References
- https://github.com/ericcornelissen/shescape/commit/d0fce70f987ac0d8331f93cb45d47e79436173ac · Patch, WEB
- https://github.com/ericcornelissen/shescape/pull/982 · Patch, WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v1.7.1 · Release Notes, WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-3g7p-8qhx-mc8r · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-35931 · ADVISORY
- https://github.com/ericcornelissen/shescape · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 23 Jun 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 22 Jun 2023)