CVE-2019-15608Yarnpkg Yarn
Medium 5.9 No auth needed
Follow: this CVE · Yarnpkg · Yarnpkg Yarn We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Yarn.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| yarnpkg | yarn | < 1.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- github.com
- hackerone.com Exploit Mitigation Third Party Advisory