Skip to main content
← All vulnerabilities
CVE-2025-25289GHSA-XX4V-PRFH-6CGC

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.7, 5.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

@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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • octokit request-error.js

    From 1.0.0 · fixed in 6.1.7

  • @octokit/request-errornpm

    From 1.0.0 · fixed in 5.1.1

  • @octokit/request-errornpm

    From 6.0.0 · fixed in 6.1.7

References 3

GitHub · octokit/request-error.js