# CVE-2025-8262: yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-28T07:02:05.616Z
- Modified: 2026-06-17T10:06:38.147Z
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- yarnpkg Yarn: 1.22.0; 1.22.1; 1.22.2; 1.22.3; 1.22.4; 1.22.5; 1.22.6; 1.22.7; 1.22.8; 1.22.9; 1.22.10; 1.22.11; and 12 more

## Every score

- VulDB: CVSS:4.0 5.3 Medium `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`
- VulDB: CVSS:3.1 4.3 Medium `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`
- VulDB: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/yarnpkg/yarn/pull/9199> (exploit, issue-tracking)
- <https://vuldb.com/?id.317850> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.317850> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.617393> (third-party-advisory, vdb-entry)
- <https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2025-8262](https://www.cve.org/CVERecord?id=CVE-2025-8262), CVE Terms of Use, modified 2025-07-28
- NVD: [CVE-2025-8262](https://nvd.nist.gov/vuln/detail/CVE-2025-8262), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-8262 · Whole record: https://cve.day/CVE-2025-8262.json · Rebuilt by cve.day 2026-11-25T22:59:01.787Z
