CVE-2025-8262
published medium CVSS 4.0 · 5.3yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yarnpkg | — | Yarn1.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 | Affected | Not stated | 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.
Es wurde eine problematische Schwachstelle in yarnpkg Yarn bis 1.22.22 ausgemacht. Es betrifft die Funktion explodeHostedGitFragment der Datei src/resolvers/exotics/hosted-git-resolver.js. Mittels dem Manipulieren mit unbekannten Daten kann eine inefficient regular expression complexity-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk erfolgen. Der Patch wird als 97731871e674bf93bcbf29e9d3258da8685f3076 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.3 | medium | VulDB · cna | 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 | — |
| 3.0 | 4.3 | medium | VulDB · cna | 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 | — |
| 2.0 | 4.0 | medium | VulDB · cna | AV:N/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yarnpkg | Yarn | 1.22.0 (affected)1.22.1 (affected)1.22.2 (affected)1.22.3 (affected)1.22.4 (affected)1.22.5 (affected)1.22.6 (affected)1.22.7 (affected)1.22.8 (affected)1.22.9 (affected)1.22.10 (affected)1.22.11 (affected)1.22.12 (affected)1.22.13 (affected)1.22.14 (affected)1.22.15 (affected)1.22.16 (affected)1.22.17 (affected)1.22.18 (affected)1.22.19 (affected)1.22.20 (affected)1.22.21 (affected)1.22.22 (affected) | VulDB · cna |
Weaknesses
2- CWE-1333 Inefficient Regular Expression Complexity
- CWE-400 Resource Consumption
References
5- https://github.com/yarnpkg/yarn/pull/9199
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076
- VDB-317850 | CTI Indicators (IOB, IOC, TTP, IOA) https://vuldb.com/?ctiid.317850
- VDB-317850 | yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos https://vuldb.com/?id.317850
- Submit #617393 | Yarn v1.22.22 Inefficient Regular Expression Complexity https://vuldb.com/?submit.617393
Provider assertions
2VulDB · cna
yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6dd69d794c8b73ae98a5e468582cb5ac49cc9084aad0caef54c2730235b22f07
- Ingested
- 23 Sep 2026, 08:58:57 UTC
- Source record
- Official CVE record