CVE-2019-15608
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| yarn | npm | 1.19.0 |
| node-yarnpkg | Ubuntu:20.04:LTS | 1.19.1-1 |
| yarn | yarnpkg | 1.19.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | yarn | Fixed in 1.19.0 |
| npm | yarn | 0 |
| n/a | yarn | 1.19.0 |
| chainguard | yarn | 0 |
| wolfi | yarn | 0 |
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
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2019-15608 advisory