{"id":"CVE-2019-15608","state":"PUBLISHED","title":"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","description":"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.","publishedAt":"2020-03-15T17:08:13.000Z","updatedAt":"2024-08-05T00:49:13.783Z","severity":null,"assigner":"hackerone","products":["n/a yarn"],"affected":[{"vendor":"n/a","product":"yarn","versions":[{"version":"Fixed in 1.19.0","status":"affected"}]}],"references":["https://hackerone.com/reports/703138","https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"],"weaknesses":["CWE-840"],"ingestedAt":"2026-10-29T19:45:33.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/15xxx/CVE-2019-15608.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-15608","state":"PUBLISHED","datePublished":"2020-03-15T17:08:13.000Z","dateUpdated":"2024-08-05T00:49:13.783Z","assignerShortName":"hackerone","assignerOrgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1","dateReserved":"2019-08-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"yarn","versions":[{"version":"Fixed in 1.19.0","status":"affected"}]}],"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"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-840","description":"Business Logic Errors (CWE-840)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"hackerone","dateUpdated":"2020-03-21T00:21:41.000Z","orgId":"36234546-b8fa-4601-9d6f-f4e334aa8ea1"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"support@hackerone.com","ID":"CVE-2019-15608","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"yarn","version":{"version_data":[{"version_value":"Fixed in 1.19.0"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Business Logic Errors (CWE-840)"}]}]},"references":{"reference_data":[{"name":"https://hackerone.com/reports/703138","refsource":"MISC","url":"https://hackerone.com/reports/703138"},{"name":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","refsource":"MISC","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"name":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","refsource":"MISC","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/703138","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T00:49:13.783Z"}}]}}}