{"id":"CVE-2019-15608","aliases":["CLSA-2026-1786378841","DEBIAN-CVE-2019-15608","EUVD-2022-1051","GHSA-hjxc-462x-x77j","UBUNTU-CVE-2019-15608"],"status":"published","title":"TOCTOU Race Condition in Yarn","description":"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.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01836,"percentile":0.79122,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-367","CWE-840"],"published":"2020-03-15T17:08:13Z","modified":"2026-10-20T10:50:44Z","fixes":[{"ecosystem":"npm","package":"yarn","fixed_in":["1.19.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-yarnpkg","fixed_in":["1.19.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-yarnpkg","fixed_in":["1.19.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-yarnpkg","fixed_in":["1.19.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"bundled":5},{"source":"osv","ecosystem":"Debian:12","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-yarnpkg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}]},{"source":"osv","ecosystem":"npm","package":"yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}]}],"products":[{"vendor":"yarnpkg","product":"yarn"}],"references":[{"url":"https://hackerone.com/reports/703138","tags":["x_refsource_MISC","x_transferred","Exploit","Mitigation","Third Party Advisory","evidence","web","report"]},{"url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hjxc-462x-x77j"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-15608","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-15608","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-15608","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-15608","description":"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.","status":"published","published":"2020-03-15T17:08:13Z","modified":"2024-08-05T00:49:13.783Z","cwes":["CWE-840"],"updated_at":"2026-11-02T14:20:21.397307Z"}],"euvd":[{"id":"EUVD-2022-1051","description":"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.","status":"published","published":"2020-03-15T17:08:13Z","modified":"2024-08-05T00:49:13Z","updated_at":"2026-11-03T02:40:35.584574Z"}],"ghsa":[{"id":"GHSA-hjxc-462x-x77j","title":"TOCTOU Race Condition in Yarn","description":"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.","status":"published","published":"2022-02-09T22:49:38Z","modified":"2023-09-08T23:56:07Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:37:03.916765Z"}],"nvd":[{"id":"CVE-2019-15608","description":"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.","status":"published","published":"2020-03-15T18:15:11.177Z","modified":"2026-06-17T02:20:44.333Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-840","CWE-367"],"updated_at":"2026-11-02T14:05:45.254119Z"}],"osv":[{"id":"CVE-2019-15608","description":"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.","status":"published","published":"2020-03-15T18:15:11.177Z","modified":"2026-10-20T10:50:44.659529383Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:11.361782Z"},{"id":"DEBIAN-CVE-2019-15608","description":"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.","status":"published","published":"2020-03-15T18:15:11.177Z","modified":"2026-09-21T07:02:45.995568122Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:31.867036Z"},{"id":"GHSA-hjxc-462x-x77j","title":"TOCTOU Race Condition in Yarn","description":"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.","status":"published","published":"2022-02-09T22:49:38Z","modified":"2026-09-10T03:49:12.315444432Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"UBUNTU-CVE-2019-15608","description":"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.","status":"withdrawn","published":"2020-03-15T18:15:00Z","modified":"2025-07-16T08:14:28.413198Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:19.6877Z"},{"id":"CLSA-2026-1786378841","title":"TuxCare security update for yarn (5 CVEs)","description":"TuxCare rebuilt yarn to address 5 CVEs. Fixed in 1.15.2-tuxcare.1.","status":"published","published":"2026-08-10T16:20:41Z","modified":"2026-10-15T09:46:00.652464848Z","updated_at":"2026-11-02T15:43:46.850893Z"}]}}
