CVE-2025-25289octokit request-error.js
Medium 5.3 No auth needed
Follow: this CVE · octokit · octokit request-error.js We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Feb 14, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
@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
- Apply the vendor's security update for request-error.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @octokit/request-error |
≥ 1.0.0 < 5.1.1 |
5.1.1 |
npm install @octokit/request-error@5.1.1 |
| npm | @octokit/request-error |
≥ 6.0.0 < 6.1.7 |
6.1.7 |
npm install @octokit/request-error@6.1.7 |
Per OSV / GitHub Advisories (GHSA-xx4v-prfh-6cgc). Check the version in your lockfile before upgrading.
Affected products
- octokit · request-error.js
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.