CVE-2025-8262 MEDIUM

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

Vendor Yarnpkg
Product Yarn
Weakness CWE-1333
Published July 28, 2025
Last update July 28, 2025

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 28, 2025 CVE published
July 28, 2025 Record updated