Skip to content

CVE-2019-15608 TOCTOU Race Condition in Yarn

MediumCVSS 5.9 EPSS 1.8%
Published
Updated
Exploit status
No public exploit known

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

ProductAffected versionsFixed in
npm yarn(npm) < 1.19.0 1.19.0
debian/node-yarnpkg(Debian:12) < 1.19.1-1 1.19.1-1
debian/node-yarnpkg(Debian:13) < 1.19.1-1 1.19.1-1
debian/node-yarnpkg(Debian:14) < 1.19.1-1 1.19.1-1
yarnpkg yarn < 1.19.0 1.19.0
ubuntu/node-yarnpkg(Ubuntu:20.04) < 1.19.1-1 1.19.1-1
ubuntu/node-yarnpkg(Ubuntu:20.04) = 1.13.0-1build1 No fix listed
ubuntu/node-yarnpkg(Ubuntu:20.04) = 1.13.0-3 No fix listed

References