CVE-2019-15608

Medium

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductYarn
PublishedMar 15, 2020
First seenMar 15, 2020
Weakness typeCWE-840CWE-840

How to fix

Update
  • yarnpkg yarn1.19.0 or later
  • yarn1.19.0 or later

Affected products

ProductAffected versionsFixed in
yarnpkg yarnv < 1.19.01.19.0
yarnnpmv < 1.19.01.19.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.