CVE-2025-25285 json
@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
published 2025-02-14 20 mo ago modified 2026-09-10 1 mo ago also GHSA-x4c5-c7rf-jjgv , EUVD-2025-4099
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
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.
Patch / fix
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-25285 updated cvss 5.3
octokit/endpoint: @octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
-
Red Hat Multicluster Engine for Kubernetes multicluster-engine/multicluster-engine-console-mce-rhel9affected: no fix planned “Will not fix”
-
Red Hat OpenShift Serverless openshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8 openshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8affected: no fix available
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8affected: no fix planned “Will not fix”
-
Red Hat Developer Hub 1 rhdh-hub-rhel9affected: no fix available “Fix deferred”
-
Red Hat Integration Camel K 1 io.apicurio-apicurio-registry io.apicurio-apicurio-registryaffected: no fix planned “Will not fix”
-
Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent org.keycloak-keycloak-parentaffected: no fix available “Fix deferred”
-
Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parent org.keycloak-keycloak-parent Red Hat OpenShift Container Platform 4 openshift4/ose-console Red Hat OpenShift Dev Spaces devspaces/code-rhel8affected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.63% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @octokit/endpoint | >=9.0.5, <9.0.6 >=10.0.0, <10.1.3 |
9.0.6 10.1.3 |
Affected products
- octokit endpoint.js
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8
web
-
github.com
/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv
web
-
github.com
/octokit/endpoint.js/blob/main/src/parse.ts
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-25285
advisory
-
github.com
/octokit/endpoint.js
package
Sources
- CVE List CVE-2025-25285
- GitHub Advisory GHSA-x4c5-c7rf-jjgv
- NVD CVE-2025-25285
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.