CVE-2025-25288 Details
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.
A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in the Octokit plugin for paginating REST API responses, specifically in versions 1.0.0 and prior to 11.4.1. The vulnerability arises when `octokit.paginate.iterator()` is called with a crafted `octokit` instance that includes a malicious `link` header. This exploitation triggers excessive backtracking in the regular expression used to parse the `Link` header, leading to high CPU usage and potential service slowdowns or freezes.
Users can upgrade to version 11.4.1 or later of the `@octokit/plugin-paginate-rest` package to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 14, 2025CISA-ADP
Assessed Feb 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts | [email protected] | Source CodeVendor |
| https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab | [email protected] | Source CodeVendor |
| https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @octokit/plugin-paginate-rest | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 14, 2025 | New CVE Received | [email protected] |
Volerion