Cyber Resilience

CVE-2023-35931

Shescape Project Shescape ≤ 1.7.1

Public PoC
Published
23 June 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 3.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
EPSS Score 0.0081 54th percentile
Risk Priority 30 floored blend · peak EPSS

Summary

CVE-2023-35931 is a low-severity Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526) vulnerability in Shescape Project Shescape. Its CVSS base score is 3.1 (Low).

Operationally, exploitation aligns with the MITRE ATT&CK technique Unsecured Credentials (T1552); ranked in the top 46% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-32094Same product: Shescape Project Shescape
CVE-2023-43029Shared CWE-526
CVE-2025-9162Shared CWE-526
CVE-2024-2700Shared CWE-526
CVE-2024-11736Shared CWE-526
CVE-2025-28381Shared CWE-526
CVE-2025-27899Shared CWE-526
CVE-2023-5720Shared CWE-526
CVE-2025-36017Shared CWE-526
CVE-2026-40153Shared CWE-526

Affected Assets

shescape project
shescape
≤ 1.7.1

Mitigating Controls

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.DS-01 mostly match
prevents

Encryption and related protections for data-at-rest directly prevent cleartext env-var storage of secrets.

PR.PS-01 partial match
prevents

Hardened configuration baselines and management practices reduce the chance of secrets being left in environment variables.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Cryptography control directly addresses the lack of encryption for sensitive data stored in environment variables.

mitigates

Classification drives decisions on what must be protected, indirectly discouraging cleartext storage of sensitive data.

mitigates

Authentication secrets are a common type of sensitive information; the control requires protecting them, which this weakness violates.

degrades

Requires secure deletion of sensitive information, which would prevent leaving it in environment variables.

A.8.11 Data masking partial match
mitigates

Data masking techniques can be applied to avoid storing sensitive values in cleartext environment variables.

mitigates

DLP policies can detect and block the placement of sensitive data into environment variables.

References