# CVE-2025-25285: @octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 59% of CVEs (2026-11-30)
- Published: 2025-02-14T17:56:18.000Z
- Modified: 2026-09-10T03:50:06.147Z
- Also known as: GHSA-x4c5-c7rf-jjgv
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- octokit endpoint.js: >= 4.1.0, < 10.1.3
- @octokit/endpoint (npm): from 9.0.5 before 9.0.6; from 10.0.0 before 10.1.3

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv> (web)
- <https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8> (web)
- <https://github.com/octokit/endpoint.js/blob/main/src/parse.ts> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25285> (advisory)
- <https://github.com/octokit/endpoint.js> (package)

## Sources

- CVE List: [CVE-2025-25285](https://www.cve.org/CVERecord?id=CVE-2025-25285), CVE Terms of Use, modified 2025-02-14
- GitHub Advisory Database: [GHSA-x4c5-c7rf-jjgv](https://github.com/advisories/GHSA-x4c5-c7rf-jjgv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-25285](https://nvd.nist.gov/vuln/detail/CVE-2025-25285), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-25285 · Whole record: https://cve.day/CVE-2025-25285.json · Rebuilt by cve.day 2026-11-25T22:58:54.114Z
