Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
yarnpkg Yarn
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Yarn是一款开源的软件包安装、管理工具。 Yarn 1.22.22及之前版本存在安全漏洞,该漏洞源于函数explodeHostedGitFragment会导致正则表达式的复杂性降低。

CVSS 4.3 · Medium EPSS 0.74% · P53

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-8262

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
yarnpkg Yarn hosted-git-resolver.js explodeHostedGitFragment redos
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1333
Source: CVE Program / CVE List V5
Vulnerability Title
Yarn 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Yarn是一款开源的软件包安装、管理工具。 Yarn 1.22.22及之前版本存在安全漏洞,该漏洞源于函数explodeHostedGitFragment会导致正则表达式的复杂性降低。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
yarnpkg Yarn 1.22.0 -

II. Public POCs for CVE-2025-8262

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-8262

请登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2025-8262

No comments yet


Leave a comment