Back

MEDIUM

yarn: TOCTOU vulnerability leads to cache pollution

Published Mar 15, 2020

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.

Affected products

Remediation

Red Hat mitigation

Run 'yarn cache clean' before installs.

Weaknesses (2)

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner hackerone
Published Mar 15, 2020
Updated Aug 5, 2024
Reserved Aug 26, 2019
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Feb 26, 2020
ENISA EUVD
Assigner hackerone
Published Mar 15, 2020
Updated Aug 5, 2024
Exploited since n/a
EUVD-2022-1051 GHSA-HJXC-462X-X77J