{"id":"CVE-2019-15608","aliases":["CVE-2019-15608","GHSA-hjxc-462x-x77j"],"related":[],"kind":"vulnerability","state":"published","title":"TOCTOU Race Condition in Yarn","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. It's not computed again when reading from the cache. This may lead to a cache pollution attack.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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. This issue is fixed in 1.19.0.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La comprobación de integridad del paquete en yarn versiones anteriores a 1.19.0, contiene una vulnerabilidad TOCTOU donde se calcula el hash antes de escribir un paquete en caché. No se vuelve a calcular cuando se lee desde la caché. Esto puede conllevar a un ataque de contaminación de caché.","source":"nvd"}],"published":"2020-03-15T17:08:13.000Z","modified":"2026-09-10T03:49:12.315Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-367","CWE-840"],"affected":[{"ranges":[{"version":"Fixed in 1.19.0","status":"affected"}],"product":"yarn","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.0"}],"ecosystem":"npm","package":"yarn","purl":"pkg:npm/yarn","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.19.0"}],"vendor":"yarnpkg","product":"yarn","cpe":"cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/703138","tags":["exploit","mitigation","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-15608","url":"https://www.cve.org/CVERecord?id=CVE-2019-15608","licence":"CVE Terms of Use","modified":"2024-08-05T00:49:13.783Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hjxc-462x-x77j","url":"https://github.com/advisories/GHSA-hjxc-462x-x77j","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:12.315Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-15608","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","licence":"Public domain","modified":"2026-06-17T02:20:44.333Z"}],"updatedAt":"2026-11-25T22:57:49.610Z","epss":{"score":0.01836,"percentile":0.79592,"date":"2026-12-02T12:00:21.000Z"}}