Inefficient regular expression complexity in request-error.js - CVE-2025-25289

 

Inefficient regular expression complexity in request-error.js - CVE-2025-25289

Published: July 4, 2025 / Updated: April 24, 2026


Vulnerability identifier: #VU112171
CSH Severity: Medium
CVSS v4.0: 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-25289
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: octokit
Affected software:
request-error.js

Detailed vulnerability description

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

The vulnerability exists due to insufficient input validation when processing untrusted input with a regular expressions in the processing of HTTP request headers. A remote attacker can send an authorization header containing an excessively long sequence of spaces followed by a newline and "@" to exploit inefficient regular expression processing and leading to excessive resource consumption.


How to mitigate CVE-2025-25289

Install update from vendor's website.

Sources