{"id":"CVE-2019-15608","aliases":["DEBIAN-CVE-2019-15608","GHSA-hjxc-462x-x77j","UBUNTU-CVE-2019-15608"],"summary":"The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache.","published_at":"2020-02-26T00:00:00Z","modified_at":"2026-09-21T07:02:45.995568Z","products":[],"rating":{"severity":"medium","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"low"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.018360000103712082,"percentile":0.7940499782562256,"date":"2026-11-19T00:00:00Z"},"priority":7.9,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"Debian:12","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"},{"ecosystem":"Debian:13","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"},{"ecosystem":"Debian:14","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"},{"ecosystem":"NVD","package":"yarnpkg:yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}],"fixed":["1.19.0"],"provider":"nvd","source":"CVE-2019-15608","relation":"self"},{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"fixed":["1.15.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786378841","relation":"upstream"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-yarnpkg","purl":"pkg:deb/ubuntu/node-yarnpkg@1.19.1-1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"versions":["1.13.0-1build1","1.13.0-3"],"fixed":["1.19.1-1"],"provider":"osv","source":"UBUNTU-CVE-2019-15608","relation":"self"},{"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}],"fixed":["1.19.0"],"provider":"osv","source":"GHSA-hjxc-462x-x77j","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["yarn"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2019-15608"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1786378841","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1786378841","published_at":"2026-08-10T16:20:41Z","modified_at":"2026-10-15T09:46:00.652464Z","summary":"TuxCare security update for yarn (5 CVEs)","details":"TuxCare rebuilt yarn to address 5 CVEs. Fixed in 1.15.2-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.15.2-tuxcare.0"},{"fixed":"1.15.2-tuxcare.1"}]}],"versions":["1.15.2"],"fixed":["1.15.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1786378841","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2019-15608","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608","license":"CC-BY-4.0","published_at":"2020-03-15T17:08:13Z","modified_at":"2024-08-05T00:49:13.783Z","summary":"The package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache.","details":"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.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://hackerone.com/reports/703138"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"}]},{"provider":"nvd","source_id":"CVE-2019-15608","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","severity":[],"affected":[{"ecosystem":"NVD","package":"yarnpkg:yarn","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}],"fixed":["1.19.0"],"provider":"nvd","source":"CVE-2019-15608","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2019-15608","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2019-15608","published_at":"2020-03-15T18:15:11.177Z","modified_at":"2026-09-21T07:02:45.995568Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"DEBIAN-CVE-2019-15608"}],"affected":[{"ecosystem":"Debian:12","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"},{"ecosystem":"Debian:13","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"},{"ecosystem":"Debian:14","package":"node-yarnpkg","purl":"pkg:deb/debian/node-yarnpkg?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"fixed":["1.19.1-1"],"provider":"osv","source":"DEBIAN-CVE-2019-15608","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2019-15608"}]},{"provider":"osv","source_id":"GHSA-hjxc-462x-x77j","relation":"self","url":"https://osv.dev/vulnerability/GHSA-hjxc-462x-x77j","license":"CC-BY-4.0","published_at":"2022-02-09T22:49:38Z","modified_at":"2026-09-10T03:49:12.315444Z","summary":"TOCTOU Race Condition in Yarn","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GHSA-hjxc-462x-x77j"}],"affected":[{"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.0"}]}],"fixed":["1.19.0"],"provider":"osv","source":"GHSA-hjxc-462x-x77j","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2019-15608","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2019-15608","license":"CC-BY-SA-4.0","published_at":"2020-03-15T18:15:00Z","modified_at":"2025-07-16T08:14:28.413198Z","withdrawn_at":"2025-07-18T16:45:18Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"UBUNTU-CVE-2019-15608"},{"type":"Ubuntu","score":"low","source":"UBUNTU-CVE-2019-15608"}],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"node-yarnpkg","purl":"pkg:deb/ubuntu/node-yarnpkg@1.19.1-1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-1"}]}],"versions":["1.13.0-1build1","1.13.0-3"],"fixed":["1.19.1-1"],"provider":"osv","source":"UBUNTU-CVE-2019-15608","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-15608"},{"type":"REPORT","url":"https://hackerone.com/reports/703138"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608"}]},{"provider":"redhat-vex","source_id":"CVE-2019-15608","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2019-15608","license":"CC-BY-4.0","published_at":"2020-02-26T00:00:00Z","modified_at":"2021-06-07T15:01:04Z","summary":"yarn: TOCTOU vulnerability leads to cache pollution","details":"A flaw was found in Yarn. The package integrity validation in Yarn contains a time-of-check to time-of-use (TOCTOU) vulnerability where the hash is computed before writing a package to cache and is not computed again when reading from the cache. This flaw may lead to a cache pollution attack. The highest threat from this vulnerability is to integrity.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2019-15608"},{"type":"Red Hat","score":"Moderate","source":"CVE-2019-15608"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["yarn"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2019-15608"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-15608.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2019-15608"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1851875"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608"}]}],"references":[{"type":"WEB","url":"https://hackerone.com/reports/703138"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"type":"WEB","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2019-15608"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-15608"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-15608.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2019-15608"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1851875"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1786378841","url":"https://osv.dev/vulnerability/CLSA-2026-1786378841","modified_at":"2026-10-15T09:46:00.652464Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2019-15608","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608","license":"CC-BY-4.0","modified_at":"2024-08-05T00:49:13.783Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2019-15608","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2019-15608","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2019-15608","modified_at":"2026-09-21T07:02:45.995568Z","relation":"self"},{"provider":"osv","source_id":"GHSA-hjxc-462x-x77j","url":"https://osv.dev/vulnerability/GHSA-hjxc-462x-x77j","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:12.315444Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2019-15608","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2019-15608","license":"CC-BY-SA-4.0","modified_at":"2025-07-16T08:14:28.413198Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2019-15608","url":"https://access.redhat.com/security/cve/CVE-2019-15608","license":"CC-BY-4.0","modified_at":"2021-06-07T15:01:04Z","relation":"self"}]}
