CVE-2025-25290: @octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
(updated )
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
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 →