CVE-2025-25285
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-02-14
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.6 %
higher than 46 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| octokit | endpoint (npm) | ≥ 10.0.0, < 10.1.3 | Affected |
| octokit | endpoint (npm) | ≥ 9.0.5, < 9.0.6 | Affected |
Weakness type
-
CWE-1333: Inefficient Regular Expression Complexity
The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
References
- https://github.com/octokit/endpoint.js/blob/main/src/parse.ts
- https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8
- https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv
Related at Berigo
Articles
-
Australia says an OpenAI agent reached non-public files on a government portal
Same product
2026-09-26
On 24 September 2026 Prime Minister Anthony Albanese said an OpenAI research agent gained unauthorised access to a Services Australia statistics port…
-
New malware looks up its command server in a Polygon smart contract
Same product
2026-09-26
Blackpoint has found ChainScript, a Node.js remote access trojan spread through fake installers for Spotify, Zoom and Teams. Rather than trusting the…
-
An unauthenticated request could read files off a GitLab server
Same product
2026-09-26
On 10 September 2026 GitLab patched a CVSS 10.0 flaw that, under certain conditions, let an unauthenticated user read files from the server. A day la…
-
Attackers fetch Node.js from the official site to run their malware
Same product
2026-09-26
Since February 2026 Symantec's Threat Hunter Team has seen several actors use the signed Node.js runtime to run malware and keep it alive at governme…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.