Vulnerability · Published Jul 28, 2025 · Assigned by VulDB

CVE-2025-8262yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

Medium 4.3

In plain English

A medium-severity regular-expression denial of service in Yarn from yarnpkg. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities).

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.8%top 41.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-yarnpkgno fix listedDEBIAN-CVE-2025-8262
Debian:13node-yarnpkgno fix listedDEBIAN-CVE-2025-8262
Debian:14node-yarnpkgno fix listedDEBIAN-CVE-2025-8262
Ubuntu:22.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2025-8262
Ubuntu:24.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2025-8262
Ubuntu:25.10node-yarnpkgno fix listedUBUNTU-CVE-2025-8262
Ubuntu:26.04:LTSnode-yarnpkgno fix listedUBUNTU-CVE-2025-8262
Ubuntu:26.10node-yarnpkgno fix listedUBUNTU-CVE-2025-8262

Affected products (as reported)

VendorProductVersions
yarnpkg Yarn 1.22.01.22.11.22.21.22.31.22.41.22.51.22.61.22.7

Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C

References