CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

5.3 CVSS

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.

Classification

CVE ID: CVE-2025-25289

CVSS Base Severity: MEDIUM

CVSS Base Score: 5.3

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected Products

Vendor: octokit

Product: request-error.js

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 18.4% (scored less or equal to compared to others)

EPSS Date: 2025-03-15 (when was this score calculated)

References

https://github.com/octokit/request-error.js/security/advisories/GHSA-xx4v-prfh-6cgc
https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e
https://github.com/octokit/request-error.js/blob/main/src/index.ts

Timeline