@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 9 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| octokit | endpoint.js | 4.1.0 to before 10.1.3 | 10.1.3 | Patch available | CNA |
| — | @octokit/endpoint (npm) | 9.0.5 to before 9.0.6 | 9.0.6 | Patch available | GHSA-x4c5-c7rf-jjgv |
| — | @octokit/endpoint (npm) | 10.0.0 to before 10.1.3 | 10.1.3 | Patch available | GHSA-x4c5-c7rf-jjgv |
- endpoint.js Vendoroctokit Affected 4.1.0 to before 10.1.3 Fixed in 10.1.3 Patch available CNA
- @octokit/endpoint (npm) Vendor— Affected 9.0.5 to before 9.0.6 Fixed in 9.0.6 Patch available GHSA-x4c5-c7rf-jjgv
- @octokit/endpoint (npm) Vendor— Affected 10.0.0 to before 10.1.3 Fixed in 10.1.3 Patch available GHSA-x4c5-c7rf-jjgv
Remediation
- Fix · CNA endpoint.js (octokit) Fixed in 10.1.3
- Fix · GHSA-x4c5-c7rf-jjgv @octokit/endpoint (npm) Fixed in 9.0.6 Advisory →
- Fix · GHSA-x4c5-c7rf-jjgv @octokit/endpoint (npm) Fixed in 10.1.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Multicluster Engine for Kubernetes | Affected | No fix planned: Will not fix |
| OpenShift Serverless | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix planned: Will not fix |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Dev Spaces | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25285
- 2026-10-03 Alias added: GHSA-x4c5-c7rf-jjgv
- 2026-10-27 Affected versions changed · Red Hat
- 2026-10-30 EPSS moved to the 50th–90th percentile
References
More octokit vulnerabilities
- TI-2025-18944 Regular expression denial of service in octokit request.js CVSS 3.1MEDIUM 5.3
- TI-2025-18943 Regular expression denial of service in octokit request-error.js CVSS 3.1MEDIUM 5.3
- TI-2025-18942 Regular expression denial of service in octokit plugin-paginate-rest.js CVSS 3.1MEDIUM 5.3
- TI-2023-27674 Unauthenticated Denial of Service in the octokit/webhooks library CVSS 3.1HIGH 7.5
- TI-2022-13116 Octokit gem published with world-writable files CVSS 3.1LOW 3.3
- TI-2022-13115 Octopoller gem published with world-writable files CVSS 3.1LOW 3.3
Sources
- CVE-2025-25285 · CVE Program
- CVE-2025-25285 · NVD
- FIRST EPSS
- GHSA-x4c5-c7rf-jjgv · GitHub Advisory Database · CC BY 4.0
- CVE-2025-25285 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences