Inefficient regular expression complexity in octokit endpoint



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2025-25285
CWE-ID CWE-1333
Exploitation vector Network
Public exploit N/A
Vulnerable software
endpoint.js
Other software / Other software solutions

Vendor octokit

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Inefficient regular expression complexity

EUVDB-ID: #VU112200

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2025-25285

CWE-ID: CWE-1333 - Inefficient Regular Expression Complexity

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to 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. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.

Mitigation

Install update from vendor's website.

Vulnerable software versions

endpoint.js: 4.1.0 - 10.1.2

CPE2.3 External links

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


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###