Check yarn.lock for compromised packages

YarnnpmExact versions

yarn.lock records the exact version Yarn resolved for every dependency in your tree, so a match is confirmed rather than probable. We read both Yarn Classic (v1) and Yarn Berry lockfiles.

5,991 compromised npm packages from 217 incidentsYour yarn.lock 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 yarn.lock

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

  • Yarn Classic (v1) entries - "pkg@^1.0.0": followed by a version field
  • Yarn Berry entries, including the __metadata block, which we skip
  • multi-specifier keys, where several ranges share one resolved entry
  • scoped packages, resolved back to their real @scope/name
Confirmed matches

How confident the answer is

Because yarn.lock pins resolved versions, every match is confirmed. If we flag something, that version really is what Yarn installed.

Worth knowing

Things worth knowing about yarn.lock

Berry and Classic are both handled

The two formats differ enough to break naive parsers, so we use Yarn's own syntax parser rather than a regex. You do not need to tell us which one you have - paste it and we detect it.

One resolution, many requesters

Yarn deduplicates, so a single entry often satisfies several different ranges requested by different parts of your tree. We dedupe on name and version so a widely-shared compromised package is reported once rather than a dozen times.

Questions

yarn.lock security questions

Yes. PnP changes how modules are resolved at runtime, not how the lockfile records versions. Your yarn.lock still lists resolved versions and we read it the same way.

Not quite. yarn audit queries an advisory database for known vulnerabilities in legitimate packages. Deliberately malicious packages get pulled from the registry quickly, and after that the advisory lookup often comes back clean even though the bad version is still pinned in your lockfile. We match against the malicious versions themselves, so takedown does not hide them.

No. Parsing and matching happen in your browser. Nothing containing your lockfile leaves the machine.

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 yarn.lock 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.