Resource Exhaustion Affecting yarn package, versions <1.22.22-r2


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.79% (56th 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-MINIMOSLATEST-YARN-15248436
  • published9 Feb 2026
  • disclosed28 Jul 2025

Introduced: 28 Jul 2025

CVE-2025-8262  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Minimos:latest yarn to version 1.22.22-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream yarn package and not the yarn package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1