Vulnerability GHSA-hjxc-462x-x77j

Medium Risk
MEDIUM RISK
CVSS Score: 5.9
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 years ago
February 09, 2022 at 10:49 PM UTC
TOCTOU Race Condition in Yarn
0.1.0 - 1.18.0
0.1.0 - 1.18.0

Summary

TOCTOU Race Condition in Yarn

Details

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.

Impacted packages

Timeline

Published
4 years ago
February 09, 2022 at 10:49 PM UTC
Fixed (1.19.0)
7 years ago
September 28, 2019 at 04:21 PM UTC
Last Modified
2 months ago
September 10, 2026 at 03:49 AM UTC