PT-2025-7068

CVE-2025-25285

·

Published

2025-02-14

·

Updated

2026-09-18

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: @octokit/endpoint versions 4.1.0 through 10.1.3
Description: The issue is a regular expression denial-of-service (ReDoS) attack that can be triggered by crafting specific options parameters, causing the program to hang and resulting in high CPU utilization. This occurs in the parse function within the parse.ts file of the npm package @octokit/endpoint. The regular expression /[w-]+(?=-preview)/g encounters a backtracking issue when processing a large number of characters followed by the - symbol.
Recommendations: For versions 4.1.0 through 10.1.3, update the regular expression to (?<![w-])[w-]+(?=-preview) to prevent excessive backtracking. Replace the existing regular expression in the parse.ts file with the updated one and thoroughly test the application to ensure the functionality remains correct and the performance improves. Once the solution is verified, deploy the fix to the production environment to protect against potential attacks.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-X4C5-C7RF-JJGV
CLEANSTART-2026-AD27625
CLEANSTART-2026-FN55648
CLEANSTART-2026-HD58055
CLEANSTART-2026-KS09647
CLEANSTART-2026-OW14897
CLEANSTART-2026-QY24299
CLEANSTART-2026-TW25027
CLEANSTART-2026-TZ34913
CLEANSTART-2026-UJ06223
CLEANSTART-2026-XE96590
CLEANSTART-2026-XR95601
CLEANSTART-2026-YD31360
Found an issue in the description? Have something to add? Feel free to write us 👾