Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-25289 EUVD-2025-4103GHSA-xx4v-prfh-6cgc

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

Published Feb 14, 2025 · Updated Feb 14, 2025 · Assigned by GitHub_M

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 products

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling lerna 8.2.1-r0 —
Wolfi rolling prism 5.14.3-r1 —
Wolfi rolling renovate 39.174.0-r0 —
Wolfi rolling tileserver-gl 5.4.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @octokit/request-error >= 1.0.0, < 5.1.1 5.1.1 GHSA-xx4v-prfh-6cgc
npm @octokit/request-error >= 6.0.0, < 6.1.7 6.1.7 GHSA-xx4v-prfh-6cgc

References