Live threats

All CVEs / Yarnpkg

CVE-2019-15608Yarnpkg Yarn

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.8%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Mar 15, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-840, CWE-367
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yarn.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm yarn < 1.19.0 1.19.0 npm install yarn@1.19.0

Per OSV / GitHub Advisories (GHSA-hjxc-462x-x77j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
yarnpkgyarn< 1.19.0

Official sources

References

Links published by the sources. Open them with care.