VDB

CVE-2019-15608

CVE-2019-15608 PUBLISHED CVSS 5.900000095367432 MEDIUM

TOCTOU Race Condition in Yarn

Reported by hackerone · Published March 15, 2020

yarn is fixed in 1.19.0 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
yarnnpm1.19.0
node-yarnpkgUbuntu:20.04:LTS1.19.1-1
yarnyarnpkg1.19.0

Risk scores

CVSS 3.1
5.900000095367432
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/ayarnFixed in 1.19.0
npmyarn0
n/ayarn1.19.0
chainguardyarn0
wolfiyarn0

Timeline

  • Feb 26, 2020 PoC Published
  • Mar 15, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory
  • Sep 14, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-15608
vulnetix vdb fixes CVE-2019-15608

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-15608/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›