Vulnerability · Published Jul 28, 2025 · Assigned by VulDB
CVE-2025-8262yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
Medium 4.3
In plain English
A medium-severity regular-expression denial of service in Yarn from yarnpkg. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-yarnpkg | no fix listed | DEBIAN-CVE-2025-8262 |
| Debian:13 | node-yarnpkg | no fix listed | DEBIAN-CVE-2025-8262 |
| Debian:14 | node-yarnpkg | no fix listed | DEBIAN-CVE-2025-8262 |
| Ubuntu:22.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2025-8262 |
| Ubuntu:24.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2025-8262 |
| Ubuntu:25.10 | node-yarnpkg | no fix listed | UBUNTU-CVE-2025-8262 |
| Ubuntu:26.04:LTS | node-yarnpkg | no fix listed | UBUNTU-CVE-2025-8262 |
| Ubuntu:26.10 | node-yarnpkg | no fix listed | UBUNTU-CVE-2025-8262 |
Affected products (as reported)
Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
References
- VDB-317850 | yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos vdb-entry, technical-description
- VDB-317850 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #617393 | Yarn v1.22.22 Inefficient Regular Expression Complexity third-party-advisory
- https://github.com/yarnpkg/yarn/pull/9199 issue-tracking
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 issue-tracking, patch