Resource exhaustion in Yarnpkg Yarn
CVE-2025-8262
- CVSS v3
- 4.3 Medium
- Public exploits
- None known
- EPSS
- 0.008 · 58.5th percentile
- Published
- 2025-07-28
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.008, 58.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Yarnpkg Yarn — versions 1.22.0, 1.22.1, 1.22.2
Weakness classification (CWE)
References
- VDB-317850 | yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-317850 | CTI Indicators (IOB, IOC, TTP, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #617393 | Yarn v1.22.22 Inefficient Regular Expression Complexity (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/yarnpkg/yarn/pull/9199 (issue-tracking, Exploit)
- github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3… (issue-tracking, Patch, patch)