{"api_version":"1","generated_at":"2026-07-23T13:27:50+00:00","cve":"CVE-2019-15608","urls":{"html":"https://cve.report/CVE-2019-15608","api":"https://cve.report/api/cve/CVE-2019-15608.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-15608","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608"},"summary":{"title":"CVE-2019-15608","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.","state":"PUBLIC","assigner":"support@hackerone.com","published_at":"2020-03-15 18:15:00","updated_at":"2020-03-21 01:15:00"},"problem_types":["CWE-367"],"metrics":[],"references":[{"url":"https://hackerone.com/reports/703138","name":"https://hackerone.com/reports/703138","refsource":"MISC","tags":["Exploit","Mitigation","Third Party Advisory"],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","name":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","refsource":"MISC","tags":[],"title":"yarn/CHANGELOG.md at master · yarnpkg/yarn · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","name":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","refsource":"MISC","tags":[],"title":"Prevents loading the cache if the stored integrity doesnt match · yarnpkg/yarn@0474b8c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-15608","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15608","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"15608","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"yarnpkg","cpe5":"yarn","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"15608","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"yarnpkg","cpe5":"yarn","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2019-15608","ASSIGNER":"support@hackerone.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"yarn","version":{"version_data":[{"version_value":"Fixed in 1.19.0"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Business Logic Errors (CWE-840)"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://hackerone.com/reports/703138","url":"https://hackerone.com/reports/703138"},{"refsource":"MISC","name":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c","url":"https://github.com/yarnpkg/yarn/commit/0474b8c66a8ea298f5e4dedc67b2de464297ad1c"},{"refsource":"MISC","name":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190","url":"https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md#1190"}]},"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."}]}},"nvd":{"publishedDate":"2020-03-15 18:15:00","lastModifiedDate":"2020-03-21 01:15:00","problem_types":["CWE-367"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*","versionEndExcluding":"1.19.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"15608","Ordinal":"155111","Title":"CVE-2019-15608","CVE":"CVE-2019-15608","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"15608","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"15608","Ordinal":"2","NoteData":"2020-03-15","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"15608","Ordinal":"3","NoteData":"2020-03-20","Type":"Other","Title":"Modified"}]}}}