SecOraLens
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?

  1. 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

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.