yarnpkg CVE Vulnerabilities & Metrics

Focus on yarnpkg vulnerabilities and metrics.

Last updated: 01 Aug 2025, 22:25 UTC

About yarnpkg Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with yarnpkg. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total yarnpkg CVEs: 7
Earliest CVE date: 16 May 2019, 17:29 UTC
Latest CVE date: 28 Jul 2025, 07:15 UTC

Latest CVE reference: CVE-2025-8262

Rolling Stats

30-day Count (Rolling): 1
365-day Count (Rolling): 1

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): 0.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): 0.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical yarnpkg CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.11

Max CVSS: 6.8

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 1
4.0-6.9 6
7.0-8.9 0
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS yarnpkg CVEs

These are the five CVEs with the highest CVSS scores for yarnpkg, sorted by severity first and recency.

All CVEs for yarnpkg

CVE-2025-8262 yarnpkg vulnerability CVSS: 4.0 28 Jul 2025, 07:15 UTC

A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression complexity. It is possible to launch the attack remotely. The patch is identified as 97731871e674bf93bcbf29e9d3258da8685f3076. It is recommended to apply a patch to fix this issue.

CVE-2021-4435 yarnpkg vulnerability CVSS: 0 04 Feb 2024, 20:15 UTC

An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.

CVE-2019-15608 yarnpkg vulnerability CVSS: 4.3 15 Mar 2020, 18:15 UTC

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.

CVE-2020-8131 yarnpkg vulnerability CVSS: 5.1 24 Feb 2020, 15:15 UTC

Arbitrary filesystem write vulnerability in Yarn before 1.22.0 allows attackers to write to any path on the filesystem and potentially lead to arbitrary code execution by forcing the user to install a malicious package.

CVE-2019-10773 yarnpkg vulnerability CVSS: 6.8 16 Dec 2019, 20:15 UTC

In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially crafted "bin" keys. Existing files could be overwritten depending on the current user permission set.

CVE-2019-5448 yarnpkg vulnerability CVSS: 4.3 30 Jul 2019, 21:15 UTC

Yarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing unencrypted authentication data to be sent over the network.

CVE-2018-12556 yarnpkg vulnerability CVSS: 4.3 16 May 2019, 17:29 UTC

The signature verification routine in install.sh in yarnpkg/website through 2018-06-05 only verifies that the yarn release is signed by any (arbitrary) key in the local keyring of the user, and does not pin the signature to the yarn release key, which allows remote attackers to sign tampered yarn release packages with their own key.