Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. yarn
  4. ›
  5. CVE-2019-15608

CVE-2019-15608: Time-of-check Time-of-use (TOCTOU) Race Condition

March 15, 2020 (updated March 21, 2020)

The package integrity validation in yarn 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2019-15608

Code Behaviors & Features

Detect and mitigate CVE-2019-15608 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.19.0

Fixed versions

  • 1.19.0

Solution

Upgrade to version 1.19.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source file

npm/yarn/CVE-2019-15608.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.