CVE-2019-15608
MEDIUM 5.9CVSS 3.1TOCTOU Race Condition in Yarn
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.
- Published
- 15 Mar 2020
- Last modified
- 10 Sep 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-367CWE-840
- Also known as
- GHSA-hjxc-462x-x77j
- Sources
- NVDJSONOSV GHSA-hjxc-462x-x77jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yarnpkg | yarncpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:* |
< 1.19.0 | 1.19.0 |
| OSV | npm | yarn | < 1.19.0 | 1.19.0 |
References
- https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190 · WEB
- https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c · WEB
- https://hackerone.com/reports/703138 · Exploit, Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-15608 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 15 Mar 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Feb 2022)