Octokit Request Error Regular Expression Denial-of-Service Vulnerability

Vulnerability

A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in the Octokit Request Error library, specifically in versions 1.0.0 and prior to 6.1.7. The issue arises in the processing of HTTP request headers, where an inefficient regular expression can be exploited. By sending an authorization header with a long sequence of spaces followed by a newline and '@', an attacker can cause excessive resource consumption, degrading server performance and potentially leading to a denial-of-service condition.

Impact

Exploitation of this vulnerability causes high CPU usage, which can significantly slow down or freeze the server, leading to a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by sending an HTTP request with an authorization header that includes a large number of spaces, followed by a newline and the '@' character. This can be done using a script that utilizes the Octokit Request Error library, simulating a request that triggers the regular expression processing flaw.

Remediation

Users can upgrade to Octokit Request Error version 6.1.7 or later to address this vulnerability.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.