What’s Vulnerable › Vulnerabilities
CVE-2025-8262: yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-07-28 · updated 2026-06-17
- Weakness: CWE-400
Description
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.
Affected products
- yarn: through 1.22.22
References
- https://github.com/yarnpkg/yarn/pull/9199
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076
- https://vuldb.com/?ctiid.317850
- https://vuldb.com/?id.317850
- https://vuldb.com/?submit.617393
Get alerted when CVE-2025-8262 or the next vulnerability affects your stack