# CVE-2023-35931: Shescape potential environment variable exposure on Windows with CMD

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 51% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-06-22T20:01:39.000Z
- Modified: 2026-09-10T03:50:01.856Z
- Also known as: GHSA-3g7p-8qhx-mc8r
- Weaknesses: CWE-526
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: < 1.7.1
- shescape (npm): before 1.7.1
- shescape_project shescape: before 1.7.1

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-3g7p-8qhx-mc8r> (exploit, vendor-advisory, web)
- <https://github.com/ericcornelissen/shescape/pull/982> (patch, web)
- <https://github.com/ericcornelissen/shescape/commit/d0fce70f987ac0d8331f93cb45d47e79436173ac> (patch, web)
- <https://github.com/ericcornelissen/shescape/releases/tag/v1.7.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-35931> (advisory)
- <https://github.com/ericcornelissen/shescape> (package)

## Sources

- CVE List: [CVE-2023-35931](https://www.cve.org/CVERecord?id=CVE-2023-35931), CVE Terms of Use, modified 2024-12-05
- GitHub Advisory Database: [GHSA-3g7p-8qhx-mc8r](https://github.com/advisories/GHSA-3g7p-8qhx-mc8r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-35931](https://nvd.nist.gov/vuln/detail/CVE-2023-35931), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-35931 · Whole record: https://cve.day/CVE-2023-35931.json · Rebuilt by cve.day 2026-11-25T22:58:25.197Z
