{"id":"GHSA-hjxc-462x-x77j","summary":"TOCTOU Race Condition in Yarn","details":"The package integrity validation in yarn \u003c 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.","aliases":["CVE-2019-15608"],"modified":"2026-09-10T03:49:12.315444432Z","published":"2022-02-09T22:49:38Z","database_specific":{"nvd_published_at":"2020-03-15T18:15:00Z","cwe_ids":["CWE-367"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-04-08T22:21:40Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"type":"WEB","url":"https://hackerone.com/reports/703138"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"}],"affected":[{"package":{"name":"yarn","ecosystem":"npm","purl":"pkg:npm/yarn"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-hjxc-462x-x77j/GHSA-hjxc-462x-x77j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}