Bug 2345819 (CVE-2025-25290)

Summary: CVE-2025-25290 octokit/request: @octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abarbaro, alcohan, asoldano, bbaranow, bmaxwell, brian.stansberry, caswilli, cdaley, cdewolf, cmiranda, darran.lofthouse, dhanak, dkreling, dosoudil, dsimansk, fjuma, gkamathe, gparvin, istudens, ivassile, iweiss, janstey, jchui, jhe, jmitchel, jtanner, kaycoth, kingland, kshier, ktsao, kverlaen, lgao, matzew, mkleinhe, mnovotny, mosmerov, msochure, msvehla, nboldt, njean, nwallace, owatkins, pahickey, pcongius, pesilva, pierdipi, pjindal, pmackay, psrna, rguimara, rhaigner, rhuss, rstancel, sdawley, smaestri, tom.jenkinson
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the octokit/request package for Node.js. The regular expression `/<([^>]+)>; rel="deprecation"/` used to match the link header in HTTP responses is vulnerable to a Regular Expression Denial of Service (ReDoS) 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. This flaw allows an attacker to send a malicious link header, resulting in excessive CPU usage and potentially causing the server to become unresponsive, impacting service availability.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-14 20:01:07 UTC
@octokit/request sends parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node. Starting in version 1.0.0 and prior to version 9.2.1, 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. Version 9.2.1 fixes the issue.