CVE-2025-8262

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

Configuration 1 (hide)

cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*

History

31 Jul 2025, 19:16

Type Values Removed Values Added
First Time Yarnpkg
Yarnpkg yarn
CPE cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : 4.3
v2 : unknown
v3 : 7.5
References () https://vuldb.com/?id.317850 - () https://vuldb.com/?id.317850 - Third Party Advisory, VDB Entry
References () https://github.com/yarnpkg/yarn/pull/9199 - () https://github.com/yarnpkg/yarn/pull/9199 - Exploit
References () https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 - () https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076 - Patch
References () https://vuldb.com/?submit.617393 - () https://vuldb.com/?submit.617393 - Third Party Advisory, VDB Entry
References () https://vuldb.com/?ctiid.317850 - () https://vuldb.com/?ctiid.317850 - Permissions Required, VDB Entry

28 Jul 2025, 07:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-07-28 07:15

Updated : 2025-07-31 19:16


NVD link : CVE-2025-8262

Mitre link : CVE-2025-8262


JSON object : View

Products Affected

yarnpkg

  • yarn
CWE
CWE-1333

Inefficient Regular Expression Complexity

CWE-400

Uncontrolled Resource Consumption