CVE-2025-25285 Details
Description
@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.
A regular expression denial-of-service (ReDoS) vulnerability has been identified in the @octokit/endpoint npm package, affecting versions 4.1.0 prior to 10.1.3. The issue arises in the 'parse' function of 'parse.ts', where a crafted 'options' parameter can trigger excessive backtracking in a regular expression. This exploitation causes the application to hang and leads to high CPU usage. The vulnerability occurs when the 'endpoint.parse(options)' call is made with specific headers that include long strings, particularly in the 'accept' header, which the regular expression processes inefficiently.
Users can upgrade to @octokit/endpoint version 10.1.3 or later to address this vulnerability. The regular expression causing the issue should be replaced with a version that does not allow for excessive backtracking, such as the one recommended in the vulnerability advisory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 14, 2025CISA-ADP
Assessed Feb 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/octokit/endpoint.js/blob/main/src/parse.ts | [email protected] | Source CodeVendor |
| https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8 | [email protected] | Source CodeVendor |
| https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @octokit/endpoint | >= 9.0.5 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 14, 2025 | New CVE Received | [email protected] |
Volerion