Skip to content
OpenAdvisories
Medium · 4.3 CVE-2025-8262 EUVD-2025-22855GHSA-9xhp-f235-5v37

yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos

Published Jul 28, 2025 · Updated Jul 28, 2025 · Assigned by VulDB

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 products

VendorProductAffectedFixed
yarnpkg Yarn 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.22.6, 1.22.7, 1.22.8, 1.22.9, 1.22.10, 1.22.11, 1.22.12, 1.22.13, 1.22.14, 1.22.15, 1.22.16, 1.22.17, 1.22.18, 1.22.19, 1.22.20, 1.22.21, 1.22.22 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-yarnpkg No fix yet —
Debian 13 node-yarnpkg No fix yet —
Debian 12 node-yarnpkg No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-yarnpkg No fix yet —
Ubuntu 26.04 LTS node-yarnpkg No fix yet —
Ubuntu 25.10 node-yarnpkg No fix yet —
Ubuntu 24.04 LTS node-yarnpkg No fix yet —
Ubuntu 22.04 LTS node-yarnpkg No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-yarnpkg No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling yarn No fix yet —

References