Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50015— pnpm: Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)

Quick assessment

Affected
pnpm pnpm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pnpm是pnpm团队开源的一个包管理器。 pnpm 10.34.0之前版本和11.4.0之前版本存在路径遍历漏洞,该漏洞源于补丁应用管道中未对从.patch文件提取的文件路径进行路径验证,可能导致攻击者通过拉取请求提交恶意补丁文件,在pnpm install过程中写入攻击者控制的内容或删除任意文件。

CVSS 7.3 · High EPSS 0.43% · P35

Affected Version Matrix 2

VendorProduct Version RangeStatus
pnpm pnpm < 10.33.4 affected
>= 11.0.0, < 11.4.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-50015

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
pnpm: Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)
Source: CVE Program / CVE List V5
Vulnerability Description
pnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm's patch application pipeline (@pnpm/patch-package) performs no path validation on file paths extracted from .patch files. An attacker who contributes a malicious patch file via a pull request can write attacker-controlled content to or delete arbitrary files on the filesystem during pnpm install, as the user running the install. The diff --git header paths containing ../../ sequences traverse out of the package directory, and the traversal is difficult to catch in code review because patch file diff headers are opaque to most reviewers. This vulnerability is fixed in 10.34.0 and 11.4.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
pnpm 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
pnpm是pnpm团队开源的一个包管理器。 pnpm 10.34.0之前版本和11.4.0之前版本存在路径遍历漏洞,该漏洞源于补丁应用管道中未对从.patch文件提取的文件路径进行路径验证,可能导致攻击者通过拉取请求提交恶意补丁文件,在pnpm install过程中写入攻击者控制的内容或删除任意文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
pnpm pnpm < 10.33.4 -

II. Public POCs for CVE-2026-50015

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-50015

登录查看更多情报信息。

Vendor Advisories for CVE-2026-50015 (1)

Same Patch Batch · pnpm · 2026-06-25 · 13 CVEs total

CVE-2026-50016 8.8 HIGH pnpm: Transitive dependency alias path traversal allows project path override via symlink
CVE-2026-55698 8.8 HIGH pnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfi
CVE-2026-55487 7.5 HIGH pnpm: manifest identity spoof satisfies allowBuilds and runs attacker lifecycle
CVE-2026-55697 7.5 HIGH pnpm: Repository-controlled configDependencies can select a pacquet native install engine
CVE-2026-55700 7.1 HIGH pnpm: stage download writes outside destination via manifest version traversal
CVE-2026-50021 6.8 MEDIUM pnpm: Integrity Check Bypass via Missing Lockfile Integrity Field
CVE-2026-50573 6.8 MEDIUM pnpm: Unsafe default behavior breaks integrity check
CVE-2026-55180 6.5 MEDIUM pnpm: Repository config can expand victim environment secrets into registry requests befor
CVE-2026-55699 6.5 MEDIUM pnpm: reserved bin name deletes PNPM_HOME during global remove
CVE-2026-50014 6.4 MEDIUM pnpm: Git Fetch Argument Injection via Lockfile resolution.commit
CVE-2026-48995 pnpm: Tarball hash of GitHub git dependencies is not stored in lockfile
CVE-2026-50017 pnpm binds unscoped user-level npm auth credentials to a repository-selected registry

IV. Related Vulnerabilities

V. Comments for CVE-2026-50015

No comments yet


Leave a comment