Security Resilience

CVE-2026-23888

Path Traversal in Pnpm ≤ 10.28.1

Public PoCPath Traversal
Published
26 January 2026
Modified
28 January 2026
Patch / advisory
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS Score 0.0057 41th percentile
Risk Priority 51 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-23888 is a medium-severity Path Traversal (CWE-22) vulnerability in Pnpm. Its CVSS base score is 6.5 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique /etc/passwd and /etc/shadow (T1003.008); ranked at the 41th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and CM-6 (Configuration Settings) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's binary fetcher allows malicious packages to write files outside the intended extraction directory. The vulnerability has two attack vectors: (1) Malicious ZIP entries containing `../`…

more

or absolute paths that escape the extraction root via AdmZip's `extractAllTo`, and (2) The `BinaryResolution.prefix` field is concatenated into the extraction path without validation, allowing a crafted prefix like `../../evil` to redirect extracted files outside `targetDir`. The issue impacts all pnpm users who install packages with binary assets, users who configure custom Node.js binary locations and CI/CD pipelines that auto-install binary dependencies. It can lead to overwriting config files, scripts, or other sensitive files leading to RCE. Version 10.28.1 contains a patch.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1003.008 /etc/passwd and /etc/shadow Credential Access
Adversaries may attempt to dump the contents of <code>/etc/passwd</code> and <code>/etc/shadow</code> to enable offline password cracking.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1547.008 LSASS Driver Persistence
Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
T1574.001 DLL Stealth
Adversaries may abuse dynamic-link library files (DLLs) in order to achieve persistence, escalate privileges, and evade defenses.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-53866Same product: Pnpm Pnpm
CVE-2026-24131Same product: Pnpm Pnpm
CVE-2026-50016Same product: Pnpm Pnpm
CVE-2026-23890Same product: Pnpm Pnpm
CVE-2026-24056Same product: Pnpm Pnpm
CVE-2026-23889Same product: Pnpm Pnpm
CVE-2023-43586Shared CWE-22, CWE-426
CVE-2024-13158Shared CWE-22, CWE-426
CVE-2024-22226Shared CWE-22, CWE-23
CVE-2025-46363Shared CWE-22, CWE-23

Affected Assets

pnpm
pnpm
≤ 10.28.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Secure baseline settings can enforce absolute, organization-controlled paths for critical resources.

Input validation directly neutralizes special path elements before pathname construction occurs.

Information-flow rules can be configured to reject traversals that would move data outside an approved directory boundary.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Least-functionality configuration can prohibit unapproved directories or executables from being reachable via search paths.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-05 full match
blocks

Preventing execution of unauthorized code directly blocks the malicious binaries that an untrusted search path would load.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input validation and path sanitization that prevent relative traversal.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce safe search paths and restrict environment variables that enable the weakness.

PR.PS-02 partial match
blocks

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

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

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches path traversal via static/dynamic analysis.

finds

A.5.22 governs the supplier relationship — monitoring compliance with agreements, reviewing service reports, conducting supplier audits — and has no technical mechanism (static analysis, code review, dynamic testing) to discover code-level implementation flaws like untrusted search paths in supplier code; this is the governance boundary, parallel to A.5.1 -> CWE-89.

prevents

A.6.3's training of technical teams on secure development practices reduces some instances of path traversal by raising developer awareness of input validation needs, but the practice is fallible and the strongest control for this implementation-phase code defect is A.8.29 security testing, mirroring the A.8.28 -> CWE-79 and A.6.3 -> CWE-598 anchors.

prevents

Secure coding standards explicitly forbid unsafe path construction and mandate safe APIs.

prevents

A.8.30 carries secure design, coding and testing practices (8.25–8.29) into outsourced development contracts, which reduces path-traversal defects in delivered code the way those practices do; the clause has a declared ceiling of `partial` on this verb and the mechanism is fallible human practice, so a minority of instances are prevented.

blocks

A.8.7's application allowlisting (guidance item a) can prevent the malicious binary an attacker plants in the search path from being installed or executed, which blocks a meaningful slice of CWE-426 exploitation; however, the weakness is a code-level defect in how the target program resolves paths, and allowlisting does not reach cases where the attacker abuses existing legitimate binaries in writable directories, hijacks DLLs, or controls the search path itself through other means.

References