CVE-2025-8262CWE-1333CWE-400

yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

Medium · published July 28, 2025

CVSS v4.0
5.3
EPSS
1%
Percentile
55.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X
EPSS
0.00785 · 55.6th percentile
Weaknesses
CWE-1333 · Inefficient Regular Expression Complexity; CWE-400 · Uncontrolled Resource Consumption
Published
2025-07-28T07:02Z
EPSS history
Timeline
  • 28 JUL 07:02Z
    yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
    cvelistv5