CVE-2026-55700: pnpm: stage download writes outside destination via manifest version traversal

Published Jun 25, 2026
·
Updated

Summary

The staged-tarball filename traversal reported as GHSA-v23m-ccfg-pq9h / CAND-PNPM-038 is fixed on main by pnpm/pnpm#12303, merged as 65443f4bdf1f0db9c8c7dc58fee25252607e9234.

Before the fix, pnpm stage download derived a local filename from registry-controlled package name and version fields. A crafted manifest could escape the selected download directory and overwrite another reachable file. The merged fix validates both fields, derives one safe filename, and verifies the final destination before writing.

Security boundary

- Package names and semantic versions are validated before they can influence a local filename. - POSIX and Windows path separators are rejected by basename checks. - Stage download and tarball summary paths use the same filename helper. - The resolved output path must remain an immediate child of the selected download directory. - The stage identifier is already constrained to a UUID.

Exploit replay

Before 65443f4bdf, a traversal-bearing manifest version could make the command write outside the selected directory. After the fix, malicious package names fail with ERRPNPMINVALIDPACKAGENAME, malicious versions fail with ERRPNPMINVALIDPACKAGEVERSION, no outside file is created, and the download directory remains empty.

Files changed

- releasing/commands/src/tarball/safeTarballFilename.ts validates manifest identity and rejects cross-platform path separators. - releasing/commands/src/stage/download.ts verifies the resolved destination before writing. - releasing/commands/src/tarball/summarizeTarball.ts uses the same filename contract. - releasing/commands/test/stage.test.ts covers traversal through both package name and version. - .changeset/stale-stage-tarballs.md includes patch bumps for @pnpm/releasing.commands and pnpm.

Patch

- Merged PR: https://github.com/pnpm/pnpm/pull/12303 - Fix commit: 65443f4bdf1f0db9c8c7dc58fee25252607e9234 - The private candidate branch was not submitted because it conflicts with and is superseded by the merged fix. The upstream patch is slightly stronger because it covers malicious package names as well as versions.

Commands run

text $ git diff --check 65443f4bdf^ 65443f4bdf PASS $ gh pr view 12303 --repo pnpm/pnpm --json state,mergeCommit,statusCheckRollup MERGED as 65443f4bdf

Validation

- Upstream regression coverage rejects traversal through both manifest name and version and verifies that no outside file is created. - Compile and lint, dependency audit, Linux Node.js 22/24/26, CodeQL, and zizmor checks passed on the merged public PR. - The Windows Node.js 22 full-suite job timed out in the unrelated pnpm/test/dlx.ts cache test after 512 other tests passed. The PR was merged by the maintainer; the failure did not involve the staging code. - The earlier private candidate's focused exploit regression, positive control, package compile, ESLint, and git diff --check also passed.

Compatibility

Staging and release commands are TypeScript-only. Pacquet does not expose this command family, so no Rust-side port is required.

Remaining risk

The final fs.writeFile follows a pre-existing symlink at the exact in-directory output name. That requires separate local filesystem access and is not controllable through the registry manifest traversal described here.

--- Written by an agent (Codex, GPT-5).

Other sources

pnpm is a package manager. From 11.3.0 until 11.5.3, pnpm stage download derived a local filename from registry-controlled package name and version fields. A crafted manifest could escape the selected download directory and overwrite another reachable file. The merged fix validates both fields, derives one safe filename, and verifies the final destination before writing. This vulnerability is fixed in 11.5.3.

NVD

Affected Software

3 affected componentsFixes available
pnpm/pnpm>=11.3.0<=11.5.3
npm/pnpm>=11.3.0<11.5.3
11.5.3
PNPM Pnpm Node.js>=11.3.0<11.5.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/pnpm to a version that resolves this vulnerability.

    Fixed in 11.5.3
  2. Upgrade

    Upgrade pnpm to a version that resolves this vulnerability.

    Fixed in 11.5.3Patch pnpm/pnpm#12303

Event History

Jun 25, 2026
CVE Published
via MITRE·04:47 PM
Data Sourced
via MITRE·04:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 26, 2026
Advisory Published
via GitHub·11:54 PM
Data Sourced
via GitHub·11:54 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-55700?

The severity of CVE-2026-55700 is high, rated at 7.1.

2

How do I fix CVE-2026-55700?

To fix CVE-2026-55700, update to the latest version of pnpm that includes the fix merged in pull request 12303.

3

What software is affected by CVE-2026-55700?

CVE-2026-55700 affects the pnpm/pnpm software.

4

What type of vulnerability is CVE-2026-55700?

CVE-2026-55700 is classified as a Path Traversal vulnerability.

5

What does CVE-2026-55700 affect in pnpm?

CVE-2026-55700 allows stage download to write outside the intended destination by exploiting manifest version traversal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203