Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Yarnpkg | Yarn | <= 1.22.22 |
Related Weaknesses (CWE)
References
- https://github.com/yarnpkg/yarn/pull/9199Exploit
- https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258dPatch
- https://vuldb.com/?ctiid.317850Permissions RequiredVDB Entry
- https://vuldb.com/?id.317850Third Party AdvisoryVDB Entry
- https://vuldb.com/?submit.617393Third Party AdvisoryVDB Entry
FAQ
What is CVE-2025-8262?
CVE-2025-8262 is a vulnerability with a CVSS score of 4.3 (MEDIUM). 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....
How severe is CVE-2025-8262?
CVE-2025-8262 has been rated MEDIUM with a CVSS base score of 4.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-8262?
Check the references section above for vendor advisories and patch information. Affected products include: Yarnpkg Yarn.