SecurityContext

CVE-2025-8262: Yarn - Denial of Service

  • Cve: CVE-2025-8262
  • Name: Yarn - Denial of Service
  • 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.
  • Impact: Remote attackers can cause denial of service by triggering inefficient regex processing, leading to application slowdown or crash.
  • Remediation: Apply the patch identified by commit 97731871e674bf93bcbf29e9d3258da8685f3076 or update to the latest version.
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00843
  • Epss percentile: 0.58876
  • Assignee: [email protected]
  • Published at: 2025-07-28T07:15:25Z
  • Age in days: 484
  • Modified at: 2026-06-17T10:06:38Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-8262
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity

Public exploits

UrlSourceAdded date
https://github.com/yarnpkg/yarn/pull/9199nvd2025-07-28

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/yarnpkg/yarn/pull/9199/commits/97731871e674bf93bcbf29e9d3258da8685f3076Patch
https://github.com/yarnpkg/yarn/pull/9199Exploit
https://vuldb.com/?id.317850Third Party Advisory, VDB Entry
https://vuldb.com/?submit.617393Third Party Advisory, VDB Entry
https://vuldb.com/?ctiid.317850Permissions Required, VDB Entry

Products

ProductAffectedPlatform boundSourcesUrl
yarnpkg:yarn<= 1.22.22nonvd/v1/products/yarnpkg/yarn

Projects

RepositoryLink kindsIndexedUrl
yarnpkg/yarnpullyes/v1/repositories/yarnpkg/yarn

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-07-28
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts