Intel

AIKIDO-2026-10970

pnpm is vulnerable to Insufficient policy enforcement

Insufficient policy enforcement Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

68

Medium Risk

This Affects:

JSpnpm
11.0.0 - 11.1.1
Fixed in 11.1.2
Are you affected? Scan for Free

TL;DR

When minimumReleaseAge is enabled, pnpm can reuse cached abbreviated registry metadata after a 304 Not Modified response and take a warn-and-skip path that silently bypasses the maturity quarantine instead of re-fetching full metadata with per-version time fields. During npm registry resolution, a super-linear semver-detection regex in 404 hint generation runs against package names derived from project dependencies, allowing CPU exhaustion from crafted names in untrusted lockfiles or manifests. Manifest dependency add and remove paths could also perform dynamic writes or deletes on keys such as __proto__ without own-property guards. The patch re-fetches and persists full metadata for release-age checks, replaces the regex with an O(n) suffix parser, and hardens manifest writes with Object.defineProperty and Object.hasOwn checks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pnpm is vulnerable to Insufficient policy enforcement in versions 11.0.0 - 11.1.1.

How to fix this

Upgrade the pnpm library to the patch version.