Bug 2345820 (CVE-2025-25285)

Summary: CVE-2025-25285 octokit/endpoint: @octokit/endpoint has a Regular Expression in parse 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, cdewolf, cmiranda, darran.lofthouse, dhanak, dkreling, dosoudil, drosa, dsimansk, fjuma, gkamathe, gparvin, istudens, ivassile, iweiss, janstey, jchui, jhe, kaycoth, kingland, ktsao, kverlaen, lgao, matzew, mnovotny, mosmerov, msochure, msvehla, nboldt, njean, nwallace, owatkins, pahickey, pcongius, pesilva, pierdipi, pjindal, pmackay, psrna, rguimara, rhaigner, rhuss, rstancel, sausingh, 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/endpoint package for Node.js. In affected versions, the `endpoint.parse(options)` call can be triggered via specially-crafted `options` parameters, leading to a regular expression denial-of-service (ReDoS) attack. This causes the program to hang and results in high CPU utilization. The issue occurs in the `parse` function within the `parse.ts` file.
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:09 UTC
@octokit/endpoint turns REST API endpoints into generic request options. Starting in version 4.1.0 and prior to version 10.1.3, by crafting specific `options` parameters, the `endpoint.parse(options)` call can be triggered, leading to a regular expression denial-of-service (ReDoS) attack. This causes the program to hang and results in high CPU utilization. The issue occurs in the `parse` function within the `parse.ts` file of the npm package `@octokit/endpoint`. Version 10.1.3 contains a patch for the issue.