{"id":"GHSA-hjxc-462x-x77j","revision":"33d20d28961d4e13bde3a9f9483b92af","records":[{"revision":"33d20d28961d4e13bde3a9f9483b92af","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hjxc-462x-x77j","aliases":["CVE-2019-15608"],"title":"TOCTOU Race Condition in Yarn","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. This issue is fixed in 1.19.0.","state":0,"publishedAt":"2022-02-09T22:49:38+00:00","modifiedAt":"2026-09-10T03:49:12.3154444+00:00","affected":[{"ecosystem":"npm","name":"yarn","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.19.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2019-15608","https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","https://hackerone.com/reports/703138","https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"],"sourceUrl":"https://github.com/advisories/GHSA-hjxc-462x-x77j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hjxc-462x-x77j","identifiers":["GHSA-hjxc-462x-x77j","CVE-2019-15608"]},"retained":false,"historicalAffected":[]}],"coverage":[]}