# CVE-2025-25288: @octokit/plugin-paginate-rest has a Regular Expression in iterator 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:57:59.000Z
- Modified: 2026-09-10T03:50:22.670Z
- Also known as: GHSA-h5c3-5r3r-rr8q
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- octokit plugin-paginate-rest.js: >= 1.0.0, < 11.4.1
- @octokit/plugin-paginate-rest (npm): from 9.3.0-beta.1 before 11.4.1; from 1.0.0 before 9.2.2

## 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/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q> (web)
- <https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab> (web)
- <https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25288> (advisory)
- <https://github.com/octokit/plugin-paginate-rest.js> (package)
- <https://github.com/octokit/plugin-paginate-rest.js/releases/tag/v9.2.2> (web)

## Sources

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

---

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