Time-of-check Time-of-use (TOCTOU) Affecting yarn package, versions <1.19.0-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.83% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-YARN-17368335
  • published18 Jun 2026
  • disclosed15 Mar 2020

Introduced: 15 Mar 2020

CVE-2019-15608  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade Wolfi yarn to version 1.19.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream yarn package and not the yarn package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1