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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 49.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npm@octokit/plugin-paginate-rest11.4.1GHSA-h5c3-5r3r-rr8q
npm@octokit/plugin-paginate-rest9.2.2GHSA-h5c3-5r3r-rr8q

Affected products (as reported)

VendorProductVersions
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