CVE-2025-8262
Yarnpkg Yarn vulnerability
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 products
Yarn. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Yarnpkg Yarn runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 · Patch
- vuldb.com/?id.317850 · Third Party Advisory
- vuldb.com/?submit.617393 · Third Party Advisory
- github.com/yarnpkg/yarn/pull/9199 · Exploit
- vuldb.com/?ctiid.317850
- nvd.nist.gov/vuln/detail/CVE-2025-8262
- cve.org/CVERecord?id=CVE-2025-8262
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.