CVE-2025-25289 @octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| octokit @octokit/request-error(npm) | >= 1.0.0, < 5.1.1; >= 6.0.0, < 6.1.7 | 5.1.1, 6.1.7 | Fixed |
| octokit request-error.js | = >= 1.0.0, < 6.1.7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| octokit @octokit/request-error(npm) | >= 1.0.0, < 5.1.1 | 5.1.1 |
| octokit @octokit/request-error(npm) | >= 6.0.0, < 6.1.7 | 6.1.7 |
| octokit request-error.js | = >= 1.0.0, < 6.1.7 | No fix listed |
References
- https://github.com/octokit/request-error.js/security/advisories/GHSA-xx4v-prfh-6cgc vendor-advisory
- https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/octokit/request-error.js/blob/main/src/index.ts
- github.com
- github.com product