Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @octokit/plugin-paginate-rest
  4. ›
  5. CVE-2025-25288

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

February 14, 2025 (updated February 18, 2025)

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

References

  • github.com/advisories/GHSA-h5c3-5r3r-rr8q
  • github.com/octokit/plugin-paginate-rest.js
  • github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts
  • github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab
  • github.com/octokit/plugin-paginate-rest.js/releases/tag/v9.2.2
  • github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q
  • nvd.nist.gov/vuln/detail/CVE-2025-25288

Code Behaviors & Features

Detect and mitigate CVE-2025-25288 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 9.2.2, all versions starting from 9.3.0-beta.1 before 11.4.1

Fixed versions

  • 11.4.1
  • 9.2.2

Solution

Upgrade to versions 11.4.1, 9.2.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/@octokit/plugin-paginate-rest/CVE-2025-25288.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.