Vulnerability · Published Feb 14, 2025 · Assigned by GitHub_M

CVE-2025-25289@octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

Medium 5.3

In plain English

A medium-severity regular-expression denial of service in request-error.js from octokit. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 49.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and "@", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability. Version 6.1.7 contains a fix for the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@octokit/request-error5.1.1GHSA-xx4v-prfh-6cgc
npm@octokit/request-error6.1.7GHSA-xx4v-prfh-6cgc

Affected products (as reported)

VendorProductVersions
octokit request-error.js >= 1.0.0, < 6.1.7

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References