Time-of-check Time-of-use (TOCTOU) Affecting node-yarnpkg package, versions <1.19.1-1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.19% (41st 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-DEBIANUNSTABLE-NODEYARNPKG-560341
  • published15 Mar 2020
  • disclosed15 Mar 2020

Introduced: 15 Mar 2020

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

How to fix?

Upgrade Debian:unstable node-yarnpkg to version 1.19.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-yarnpkg package and not the node-yarnpkg package as distributed by Debian. See How to fix? for Debian:unstable 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