CVE-2025-25285octokit endpoint.js
Medium 5.3 No auth needed
Follow: this CVE · octokit · octokit endpoint.js We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Feb 14, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
@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
- Apply the vendor's security update for endpoint.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @octokit/endpoint |
≥ 9.0.5 < 9.0.6 |
9.0.6 |
npm install @octokit/endpoint@9.0.6 |
| npm | @octokit/endpoint |
≥ 10.0.0 < 10.1.3 |
10.1.3 |
npm install @octokit/endpoint@10.1.3 |
Per OSV / GitHub Advisories (GHSA-x4c5-c7rf-jjgv). Check the version in your lockfile before upgrading.
Affected products
- octokit · endpoint.js
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.