Time-of-check Time-of-use (TOCTOU) Race Condition in yarn - CVE-2019-15608
Published: March 15, 2020 / Updated: August 8, 2020
yarn
Detailed vulnerability description
The vulnerability allows a remote non-authenticated attacker to manipulate data.
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.