CVE-2025-25288 @octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
MediumCVSS 5.3
EPSS 0.65%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
@octokit/plugin-paginate-rest is the Octokit plugin to paginate REST API endpoint responses. For versions starting in 1.0.0 and prior to 11.4.1 of the npm package @octokit/plugin-paginate-rest, when calling octokit.paginate.iterator(), a specially crafted octokit instance—particularly with a malicious link parameter in the headers section of the request—can trigger a ReDoS attack. Version 11.4.1 contains a fix for the issue.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| octokit @octokit/plugin-paginate-rest(npm) | >= 1.0.0, < 9.2.2; >= 9.3.0-beta.1, < 11.4.1 | 9.2.2, 11.4.1 | Fixed |
| octokit plugin-paginate-rest.js | = >= 1.0.0, < 11.4.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| octokit @octokit/plugin-paginate-rest(npm) | >= 9.3.0-beta.1, < 11.4.1 | 11.4.1 |
| octokit @octokit/plugin-paginate-rest(npm) | >= 1.0.0, < 9.2.2 | 9.2.2 |
| octokit plugin-paginate-rest.js | = >= 1.0.0, < 11.4.1 | No fix listed |
References
- https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q vendor-advisory
- https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts
- github.com
- github.com
- github.com product