HighCVECVE-2026-55698
pnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfile-selected pnpm bytes
GitHub Security Advisories·Published ·1 min read
What happened?
<!-- maintainer-action:start --> ## Maintainer Action Plan This report is ready to review with the shared patch branch. Start with the PR and the expected fixed behavior, then use the detailed exploit narrative below only if you want to replay the original path.
Key details
- pnpm stores package-manager bootstrap metadata in the first YAML document of pnpm-lock.yaml.
- Direct pnpm execution trusted an already resolved packageManagerDependencies entry when versions matched.
- A malicious repository could commit lockfile records that bypass fresh resolution and cause execution of attacker-selected bytes.
- The patch forces re-resolution of package-manager entries through trusted registries before installation and execution.
- switchCliVersion now calls resolvePackageManagerIntegrities with force: true and uses the returned refreshed lockfile.
- Impact allows arbitrary package-manager code execution with victim privileges in developer or CI environments.
How do I fix or mitigate it?
- The patch makes switchCliVersion re-resolve package-manager metadata through trusted registries before install and execution.
Summarised by SecOraLens from GitHub Security Advisories. Always read the original source before acting. How SecOraLens verifies advisories.
What to do next
Hunt for this in your environmentPick a hypothesis, see where it sits on the MITRE ATT&CK model and get ready-to-run Sigma, Splunk, Sentinel and Elastic queries. Free to try.Open the Threat-Hunt Workbench →Get advisories like this by emailNew advisories delivered as they publish, each traced to its original source. Unsubscribe any time.Subscribe →Using this for a team?Paid plans add detection content, the full workbench and archive search. Not sure which fits? Ask us for a walkthrough.See plans →
For CISOs and SOC leads
Brief your board. Brief your team.
Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.
