BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-24131 in Pnpm

Medium 5.5

pnpm is a package manager. Prior to version 10.28.2, when pnpm processes a package's `directories.bin` field, it uses `path.join()` without validating the result stays within the package root. A malicious npm package can specify `"directories": {"bin": "../../../../tmp"}` to escape the package directory, causing pnp...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.5
CVSS v46.7
EPSS0.2%
EPSS percentile7th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Pnpm Pnpm < 10.28.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

pnpm is a package manager. Prior to version 10.28.2, when pnpm processes a package's `directories.bin` field, it uses `path.join()` without validating the result stays within the package root. A malicious npm package can specify `"directories": {"bin": "../../../../tmp"}` to escape the package directory, causing pnpm to chmod 755 files at arbitrary locations. This issue only affects Unix/Linux/macOS. Windows is not affected (`fixBin` gated by `EXECUTABLE_SHEBANG_SUPPORTED`). Version 10.28.2 contains a patch.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-24131
BreachSpider IDBS-2026-GLOBAL-072220-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published2026-01-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

CWE-732: Incorrect Permission Assignment for Critical Resource

Software sets permissions on critical resources allowing unintended actors to read or modify them.

Related attack patterns (CAPEC)

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-732

CAPEC-61 Session Fixation via CWE-732

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

Show all 16

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

CAPEC-127 Directory Indexing via CWE-732

CAPEC-206 Signing Malicious Code via CWE-732

CAPEC-642 Replace Binaries via CWE-732

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-732

CAPEC-17 Using Malicious Files via CWE-732

CAPEC-62 Cross Site Request Forgery via CWE-732

CAPEC-126 Path Traversal via CWE-22

CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-732

CAPEC-234 Hijacking a privileged process via CWE-732

CAPEC-122 Privilege Abuse via CWE-732

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-24131 affects pnpm versions prior to 10.28.2, allowing a malicious npm package to escape the package directory and modify file permissions at arbitrary locations on Unix/Linux/mac systems.

A malicious npm package can specify a `directories.bin` field with a path that escapes the package root, such as `../../../../tmp`. When pnpm processes this field, it uses `path.join()` without validating the result, leading to chmod 755 permissions being set on files at arbitrary locations.

Questions

What is CVE-2026-24131?

CVE-2026-24131 affects pnpm versions prior to 10.28.2, allowing a malicious npm package to escape the package directory and modify file permissions at arbitrary locations on Unix/Linux/mac systems.

What is the CVSS score for CVE-2026-24131?

CVE-2026-24131 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.2%.

Is CVE-2026-24131 actively exploited?

No confirmed active exploitation of CVE-2026-24131 as of 2026-09-25.

How do I remediate CVE-2026-24131?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-24131?

CVE-2026-24131 affects Pnpm Pnpm.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Pnpm","product":"Pnpm","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.