Advisory

GHSA-hjxc-462x-x77j

Also known as: CVE-2019-15608

Summary

TOCTOU Race Condition in Yarn

Details

The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache. It's not computed again when reading from the cache. This may lead to a cache pollution attack. This issue is fixed in 1.19.0.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-09 22:49 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

yarn

npm · All systems

Affected

  • introduced 0, fixed 1.19.0 (semver)

Fixed versions

1.19.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences