CVE-2025-8262
5.3
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
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| yarnpkg | Yarn | 1.22.0 | affected |
| yarnpkg | Yarn | 1.22.1 | affected |
| yarnpkg | Yarn | 1.22.2 | affected |
| yarnpkg | Yarn | 1.22.3 | affected |
| yarnpkg | Yarn | 1.22.4 | affected |
| yarnpkg | Yarn | 1.22.5 | affected |
| yarnpkg | Yarn | 1.22.6 | affected |
| yarnpkg | Yarn | 1.22.7 | affected |
| yarnpkg | Yarn | 1.22.8 | affected |
| yarnpkg | Yarn | 1.22.9 | affected |
| yarnpkg | Yarn | 1.22.10 | affected |
| yarnpkg | Yarn | 1.22.11 | affected |
| yarnpkg | Yarn | 1.22.12 | affected |
| yarnpkg | Yarn | 1.22.13 | affected |
| yarnpkg | Yarn | 1.22.14 | affected |
| yarnpkg | Yarn | 1.22.15 | affected |
| yarnpkg | Yarn | 1.22.16 | affected |
| yarnpkg | Yarn | 1.22.17 | affected |
| yarnpkg | Yarn | 1.22.18 | affected |
| yarnpkg | Yarn | 1.22.19 | affected |
| yarnpkg | Yarn | 1.22.20 | affected |
| yarnpkg | Yarn | 1.22.21 | affected |
| yarnpkg | Yarn | 1.22.22 | affected |
Weaknesses
- CWE-1333: Inefficient Regular Expression Complexity
- CWE-400: Resource Consumption
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
References
- https://vuldb.com/?id.317850
- https://vuldb.com/?ctiid.317850
- https://vuldb.com/?submit.617393
- https://github.com/yarnpkg/yarn/pull/9199
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.