CVE-2025-8262 Details
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.
A denial-of-service vulnerability has been identified in Yarn versions through 1.22.22. The issue arises in the 'explodeHostedGitFragment' function within 'src/resolvers/exotics/hosted-git-resolver.js', where inefficient regular expression processing can be exploited to cause excessive CPU usage, potentially leading to application freezes or service disruptions. This vulnerability can be triggered remotely.
Users are advised to update to Yarn version 1.22.23 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/yarnpkg/yarn/pull/9199 | [email protected] | Exploit |
| https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 | [email protected] | Patch |
| https://vuldb.com/?ctiid.317850 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.317850 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.617393 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yarnpkg yarn | <= 1.22.22 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2025 | Initial Analysis | [email protected] |
| Jul 28, 2025 | New CVE Received | [email protected] |