CVE-2025-25290
@octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
@octokit/request sends parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node. Starting in version 1.0.0 and prior to versions 9.2.1 and 8.4.1, the regular expression `/<([^>]+)>; rel="deprecation"/` used to match the `link` header in HTTP responses is vulnerable to a ReDoS (Regular Expression Denial of Service) attack. This vulnerability arises due to the unbounded nature of the regex's matching behavior, which can lead to catastrophic backtracking when processing specially crafted input. An attacker could exploit this flaw by sending a malicious `link` header, resulting in excessive CPU usage and potentially causing the server to become unresponsive, impacting service availability. Versions 9.2.1 and 8.4.1 fix the issue.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Deferred | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 0.78% · top 44% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
Affected products
- affected >= 1.0.0, < 9.2.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@octokit/requestGHSA-rmvr-2pp2-xj38 (opens in a new tab)
References (6)
- https://github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68 (opens in a new tab)x_refsource_MISC
- https://github.com/octokit/request.js/commit/356411e3217019aa9fc8a68f4236af82490873c2 (opens in a new tab)x_refsource_MISC
- https://github.com/octokit/request.js/commit/6bb29ba92a52f7bf94469c3433707c682c17126c (opens in a new tab)x_refsource_MISC
- https://github.com/octokit/request.js/releases/tag/v8.4.1 (opens in a new tab)x_refsource_MISC
- https://github.com/octokit/request.js/releases/tag/v9.2.1 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rmvr-2pp2-xj38 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-25290)Record last updated .