yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-1333.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| 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; 1.22.12; 1.22.13; 1.22.14; 1.22.15; 1.22.16; 1.22.17; 1.22.18; 1.22.19; 1.22.20; 1.22.21; 1.22.22 | — | No fix listed | CNA |
- Yarn Vendoryarnpkg Affected 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; 1.22.12; 1.22.13; 1.22.14; 1.22.15; 1.22.16; 1.22.17; 1.22.18; 1.22.19; 1.22.20; 1.22.21; 1.22.22 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-8262
- 2026-10-03 Alias added: GHSA-9xhp-f235-5v37
References
More yarnpkg Yarn vulnerabilities
- TI-2025-08532 yarnpkg Yarn request-manager.js setOptions redos CVSS 4.0MEDIUM 4.8
- TI-2020-06549 Path traversal in yarn CVSS 3.1HIGH 7.5
- TI-2019-08038 Link following in Yarn CVSS 3.1HIGH 7.8
- TI-2021-03291 Yarn: untrusted search path CVSS 3.1HIGH 7.8
- TI-2019-03856 Cleartext transmission of sensitive information in yarn CVSS 3.1HIGH 8.1
- TI-2019-11707 Time-of-check time-of-use race condition in yarn CVSS 3.1MEDIUM 5.9
Sources
- CVE-2025-8262 · CVE Program
- CVE-2025-8262 · NVD
- FIRST EPSS
- GHSA-9xhp-f235-5v37 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-8262 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences