# CVE-2019-15608: TOCTOU Race Condition in Yarn

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.84%, higher than 79% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-03-15T17:08:13.000Z
- Modified: 2026-09-10T03:49:12.315Z
- Also known as: GHSA-hjxc-462x-x77j
- Weaknesses: CWE-367, CWE-840
- Assigned by: hackerone

## Description

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.

(As written by CVE List.)

## Affected

- yarn: Fixed in 1.19.0
- yarn (npm): before 1.19.0
- yarnpkg yarn: before 1.19.0

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://hackerone.com/reports/703138> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c> (web)
- <https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-15608> (advisory)

## Sources

- CVE List: [CVE-2019-15608](https://www.cve.org/CVERecord?id=CVE-2019-15608), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-hjxc-462x-x77j](https://github.com/advisories/GHSA-hjxc-462x-x77j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2019-15608](https://nvd.nist.gov/vuln/detail/CVE-2019-15608), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-15608 · Whole record: https://cve.day/CVE-2019-15608.json · Rebuilt by cve.day 2026-11-25T22:57:49.610Z
