Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @octokit/request
  4. ›
  5. CVE-2025-25290

CVE-2025-25290: @octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

February 14, 2025 (updated February 18, 2025)

The regular expression /<([^>]+)>; rel="deprecation"/ used to match the link header in HTTP responses is vulnerable to a ReDoS (Regular Expression Denial of Service) attack. This vulnerability arises due to the unbounded nature of the regex’s matching behavior, which can lead to catastrophic backtracking when processing specially crafted input. An attacker could exploit this flaw by sending a malicious link header, resulting in excessive CPU usage and potentially causing the server to become unresponsive, impacting service availability.

References

  • github.com/advisories/GHSA-rmvr-2pp2-xj38
  • github.com/octokit/request.js
  • github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68
  • github.com/octokit/request.js/releases/tag/v8.4.1
  • github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38
  • nvd.nist.gov/vuln/detail/CVE-2025-25290

Code Behaviors & Features

Detect and mitigate CVE-2025-25290 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 8.4.1, all versions starting from 9.0.0-beta.1 before 9.2.1

Fixed versions

  • 9.2.1
  • 8.4.1

Solution

Upgrade to versions 8.4.1, 9.2.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/@octokit/request/CVE-2025-25290.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.