{"id":"CVE-2019-15608","published":"2020-03-15T17:08:13Z","modified":"2024-08-05T00:49:13Z","title":"The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01836,"percentile":0.79469,"provenance":"source"},"cwes":[{"id":"CWE-840","name":"Business Logic Errors (CWE-840)"}],"references":[{"url":"https://hackerone.com/reports/703138","tags":["x_refsource_MISC"]},{"url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","tags":["x_refsource_MISC"]},{"url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":15.89}]},"affectedVersions":[{"vendor":"n/a","product":"yarn","versions":["Fixed in 1.19.0"]}],"affected":[{"ecosystem":"npm","package":"yarn","vulnerableRanges":["<1.19.0"],"patched":["1.19.0"],"from":["GHSA-hjxc-462x-x77j"],"provenance":"source"}],"summary":{"text":"The package integrity validation in Yarn versions before 1.19.0 has a time-of-check/time-of-use flaw: the package hash is computed before a package is written to the cache and is not recomputed when the package is read back from the cache. An attacker who can modify cached package contents after the hash is taken could cause cache pollution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:45Z"},"euvd":{"id":"EUVD-2022-1051","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-5448","published":"2019-07-30","fixed":"1.17.3","kev":false,"link":{"from":"CVE-2019-5448","to":"CVE-2019-15608","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:yarn","fromFixed":"1.17.3","toFixed":"1.19.0","daysApart":229}]}},{"cve":"CVE-2019-15608","published":"2020-03-15","fixed":"1.19.0","kev":false},{"cve":"CVE-2019-10773","published":"2019-12-16","fixed":"1.22.0","kev":false},{"cve":"CVE-2020-8131","published":"2020-02-24","fixed":"1.22.0","kev":false},{"cve":"CVE-2021-4435","published":"2024-02-04","fixed":"1.22.13","kev":false}],"package":"npm:yarn"}}