Time-of-check time-of-use race condition in yarn
Priority LOW 30CWE-840Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
EPSS 0.01836 79th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed yarn (npm): 1.19.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | yarn | Fixed in 1.19.0 | — | No fix listed | CNA |
| — | yarn (npm) | before 1.19.0 | 1.19.0 | Patch available | GHSA-hjxc-462x-x77j |
- yarn Vendor— Affected Fixed in 1.19.0 Fixed in — No fix listed CNA
- yarn (npm) Vendor— Affected before 1.19.0 Fixed in 1.19.0 Patch available GHSA-hjxc-462x-x77j
Remediation
- Fix · GHSA-hjxc-462x-x77j yarn (npm) Fixed in 1.19.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2019-15608
- 2026-10-03 Alias added: GHSA-hjxc-462x-x77j
References
More yarnpkg Yarn vulnerabilities
- TI-2025-07562 yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos CVSS 4.0MEDIUM 5.3
- TI-2025-08532 yarnpkg Yarn request-manager.js setOptions redos CVSS 4.0MEDIUM 4.8
- TI-2020-06549 Path traversal in yarn CVSS 3.1HIGH 7.5
- TI-2019-08038 Link following in Yarn CVSS 3.1HIGH 7.8
- TI-2021-03291 Yarn: untrusted search path CVSS 3.1HIGH 7.8
- TI-2019-03856 Cleartext transmission of sensitive information in yarn CVSS 3.1HIGH 8.1
Sources
- CVE-2019-15608 · CVE Program
- CVE-2019-15608 · NVD
- FIRST EPSS
- GHSA-hjxc-462x-x77j · GitHub Advisory Database · CC BY 4.0
- CVE-2019-15608 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences