Vulnerability · Published Feb 14, 2025 · Assigned by GitHub_M
CVE-2025-25288@octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in plugin-paginate-rest.js from octokit. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @octokit/plugin-paginate-rest | 11.4.1 | GHSA-h5c3-5r3r-rr8q |
| npm | @octokit/plugin-paginate-rest | 9.2.2 | GHSA-h5c3-5r3r-rr8q |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| octokit | plugin-paginate-rest.js | >= 1.0.0, < 11.4.1 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q x_refsource_CONFIRM
- https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab x_refsource_MISC
- https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts x_refsource_MISC