{"id":"CVE-2019-15608","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.","aliases":["GHSA-hjxc-462x-x77j"],"modified":"2026-05-18T17:42:58.220385Z","published":"2020-03-15T18:15:11.177Z","references":[{"type":"WEB","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"},{"type":"FIX","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"type":"EVIDENCE","url":"https://hackerone.com/reports/703138"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yarnpkg/yarn","events":[{"introduced":"0"},{"fixed":"c3d256fcf641de4fe8d4d6034a2b046fafae30c0"},{"fixed":"0474b8c66a8ea298f5e4dedc67b2de464297ad1c"}],"database_specific":{"source":["CPE_FIELD","REFERENCES"],"cpe":"cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.19.0"}]}}],"versions":["v1.18.0","v1.17.0","v1.16.0","v1.15.0","v1.14.0","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.0","v1.8.0","v1.7.0","v1.6.0","v1.5.0","v1.4.1","v1.4.0","v1.3.2","v1.3.1","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.2","v1.0.1","v1.0.0","v0.28.0","v0.27.0","v0.26.0","v0.25.0","v0.23.0","v0.22.0","v0.21.0","v0.21.0-pre","v0.20.0","v0.19.0","v0.20.0-0","v0.18.0","v0.17.0","v0.18.0-0","v0.19.0-0","v0.17.0-0","v0.15.0","v0.15.1","v0.14.0","v0.13.0","v0.12.0","v0.11.0","v0.10.0","v0.9.0","v0.8.0","v0.7.1","v0.7.0","pre-release"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-15608.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}