CVE-2019-15608

yarn: TOCTOU vulnerability leads to cache pollution

Published Mar 15, 2020 CVSS 3.1 · 5.9 Medium EPSS 1.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-1051 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.
Github GHSA Github GHSA GHSA-hjxc-462x-x77j TOCTOU Race Condition in Yarn
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Aug 5, 2024, 12:49 AM
Reserved
Aug 26, 2019, 12:00 AM
Status
Modified
Published
Mar 15, 2020, 6:15 PM
Modified
Jun 17, 2026, 2:20 AM
Severity
Moderate
Public date
Feb 26, 2020, 12:00 AM