Remote Code Execution Vulnerability in Yarn by yarnpkg
CVE-2025-8262
5.3MEDIUM
What is CVE-2025-8262?
A vulnerability exists in the explodeHostedGitFragment function within the hosted-git-resolver.js file of Yarn, allowing for inefficient regular expression complexity. This creates conditions that a remote attacker could exploit, leading to performance degradation or denial-of-service outcomes. The issue has been documented and addressed in a subsequent patch (commit ID: 97731871e674bf93bcbf29e9d3258da8685f3076), and it is highly recommended that users upgrade to a safe version to mitigate the potential risks.
Affected Version(s)
Yarn 1.22.0
Yarn 1.22.1
Yarn 1.22.2