Medium, CVSS 5.3npmAmendedPublished
@octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
CVE-2025-25290 · GHSA-rmvr-2pp2-xj38
- Affected
- npm @octokit/request >= 9.0.0-beta.1, < 9.2.1; >= 1.0.0, < 8.4.1
- Fixed in
- 9.2.18.4.1· Vendor fix available
- Issue
- 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. Details The vulnerability resides in the regular expression /<([^]+); rel="deprecation"/, which is used to match the link header in HTTP responses. This regular expression captures content between angle brackets (<) followed by ; rel="deprecation". However, the pattern is vulnerable to ReDoS (Regular Expression Denial of Service) attacks due to its susceptibility to catastrophic backtracking when processing malicious input. An attacker can…
Recommended action: Upgrade to 9.2.1 or 8.4.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.