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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2025-02-14T17:58:54.000Z
- Modified: 2026-09-10T03:50:06.165Z
- Also known as: GHSA-xx4v-prfh-6cgc
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- octokit request-error.js: >= 1.0.0, < 6.1.7
- @octokit/request-error (npm): from 1.0.0 before 5.1.1; from 6.0.0 before 6.1.7

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/octokit/request-error.js/security/advisories/GHSA-xx4v-prfh-6cgc> (web)
- <https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e> (web)
- <https://github.com/octokit/request-error.js/blob/main/src/index.ts> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25289> (advisory)
- <https://github.com/octokit/request-error.js> (package)

## Sources

- CVE List: [CVE-2025-25289](https://www.cve.org/CVERecord?id=CVE-2025-25289), CVE Terms of Use, modified 2025-02-14
- GitHub Advisory Database: [GHSA-xx4v-prfh-6cgc](https://github.com/advisories/GHSA-xx4v-prfh-6cgc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-25289](https://nvd.nist.gov/vuln/detail/CVE-2025-25289), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-25289 · Whole record: https://cve.day/CVE-2025-25289.json · Rebuilt by cve.day 2026-11-25T22:58:54.115Z
