Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-25288 EUVD-2025-4102GHSA-h5c3-5r3r-rr8q

@octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

Published Feb 14, 2025 · Updated Feb 14, 2025 · 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.

Affected products

VendorProductAffectedFixed
octokit plugin-paginate-rest.js >= 1.0.0, < 11.4.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling lerna 8.2.1-r0 —
Wolfi rolling prism 5.14.3-r1 —
Wolfi rolling renovate 39.175.6-r0 —
Wolfi rolling tileserver-gl 5.4.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @octokit/plugin-paginate-rest >= 9.3.0-beta.1, < 11.4.1 11.4.1 GHSA-h5c3-5r3r-rr8q
npm @octokit/plugin-paginate-rest >= 1.0.0, < 9.2.2 9.2.2 GHSA-h5c3-5r3r-rr8q

References