Check pnpm-lock.yaml for compromised packages

pnpmnpmExact versions

pnpm-lock.yaml pins the exact version of every package in your store, including the full transitive graph, so it gives a confirmed answer. We support both the v6 and v9 lockfile layouts.

5,991 compromised npm packages from 217 incidentsYour pnpm-lock.yaml never leaves your machine
dependencywatch.io · runs in your browser

Parsed locally in your browser. Nothing leaves your device, no logging, no network round-trip.

What we read

What we read from your pnpm-lock.yaml

Written against what the parser genuinely does, so a clean result means what it says.

  • v6 layout - a single packages map with /name/version keys
  • v9 layout - split packages and snapshots maps with name@version keys
  • importers, so we can tell your direct dependencies apart from transitive ones
  • peer-resolution suffixes such as name@1.2.3(react@18.3.1), which we strip back to the real version
Confirmed matches

How confident the answer is

pnpm lockfiles pin exact resolved versions, so every match is confirmed rather than probable.

Worth knowing

Things worth knowing about pnpm-lock.yaml

Workspaces are covered

In a pnpm monorepo the root lockfile carries every workspace package under importers. Pasting the single root pnpm-lock.yaml therefore checks the whole repo at once - you do not need to scan each package separately.

The content-addressable store does not protect you

pnpm’s store deduplicates by content hash, which is excellent for disk usage but has no bearing on whether the content is malicious. A compromised version hashes and stores exactly like a clean one.

Questions

pnpm-lock.yaml security questions

v6 and v9, which between them cover pnpm 8 and 9 onwards. The two use noticeably different key shapes, so we detect the layout and read whichever applies rather than assuming one.

No. The root pnpm-lock.yaml already contains the resolved graph for all workspace packages, so one paste covers everything.

It prevents phantom dependencies - code importing packages it never declared. That is a genuine robustness win, but it does nothing about a package you did declare being compromised, or a transitive dependency of it being compromised. That is what this checks.

Other file types

Check another file

We only list package versions named by the original advisory. We don't infer compromises. Spotted one we're missing? Send it in.

Scan it now

Paste your pnpm-lock.yaml and know in seconds.

Paste a lockfile and it is matched against every tracked compromise on your own device. Nothing is uploaded and there is no account.