{"id":"GHSA-rmvr-2pp2-xj38","revision":null,"records":[{"revision":"b12a02378bb04e688089fb98a3e1d20f","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-25290","aliases":[],"title":"@octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","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.","state":0,"publishedAt":"2025-02-14T19:37:47.11+00:00","modifiedAt":"2026-01-16T17:29:06.418+00:00","affected":[{"ecosystem":"Vendor product","name":"request.js","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"octokit\",\n                    \"product\": \"request.js\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.0.0, < 9.2.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38","https://github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68","https://github.com/octokit/request.js/commit/356411e3217019aa9fc8a68f4236af82490873c2","https://github.com/octokit/request.js/commit/6bb29ba92a52f7bf94469c3433707c682c17126c","https://github.com/octokit/request.js/releases/tag/v8.4.1","https://github.com/octokit/request.js/releases/tag/v9.2.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-25290","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-25290","identifiers":["CVE-2025-25290"]},"retained":false,"historicalAffected":[]},{"revision":"0c656bd79e6142ffb5049c5637361c2d","observedAt":"2026-11-15T05:34:55.862+00:00","statement":{"source":"euvd","id":"EUVD-2025-4104","aliases":["CVE-2025-25290","GHSA-rmvr-2pp2-xj38"],"title":"@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 mat…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":null}],"references":["https://github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38","https://github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68","https://github.com/octokit/request.js/commit/356411e3217019aa9fc8a68f4236af82490873c2","https://github.com/octokit/request.js/commit/6bb29ba92a52f7bf94469c3433707c682c17126c","https://github.com/octokit/request.js/releases/tag/v8.4.1","https://github.com/octokit/request.js/releases/tag/v9.2.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-4104","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Feb 14, 2025, 7:37:47 PM","dateUpdated":"Jan 16, 2026, 5:29:06 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-4104","identifiers":["EUVD-2025-4104","CVE-2025-25290","GHSA-rmvr-2pp2-xj38"]},"retained":false,"historicalAffected":[]},{"revision":"22cd669a417f4e07a06426606623ce27","observedAt":"2026-10-25T01:17:35.189+00:00","statement":{"source":"nvd","id":"CVE-2025-25290","aliases":[],"title":"@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 mat…","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.","state":0,"publishedAt":"2025-02-14T20:15:35.593+00:00","modifiedAt":"2026-06-17T09:00:37.507+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68","https://github.com/octokit/request.js/commit/356411e3217019aa9fc8a68f4236af82490873c2","https://github.com/octokit/request.js/commit/6bb29ba92a52f7bf94469c3433707c682c17126c","https://github.com/octokit/request.js/releases/tag/v8.4.1","https://github.com/octokit/request.js/releases/tag/v9.2.1","https://github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-25290","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-1333"],"productCriteria":[],"sourceDates":{"published":"2025-02-14T20:15:35.593","lastModified":"2026-06-17T09:00:37.507"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-25290","identifiers":["CVE-2025-25290"]},"retained":false,"historicalAffected":[]},{"revision":"df23dc82cde94bdeb8dd2f84cc2b074b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-rmvr-2pp2-xj38","aliases":["CVE-2025-25290"],"title":"@octokit/request has a Regular Expression in fetchWrapper that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","description":"### Summary\nThe 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.\n### Details\nThe vulnerability resides in the regular expression `/<([^>]+)>; rel=\"deprecation\"/`, which is used to match the `link` header in HTTP responses. This regular expression captures content between angle brackets (`<>`) followed by `; rel=\"deprecation\"`. However, the pattern is vulnerable to ReDoS (Regular Expression Denial of Service) attacks due to its susceptibility to catastrophic backtracking when processing malicious input.\nAn attacker can exploit this vulnerability by sending a specially crafted `link` header designed to trigger excessive backtracking. For example, the following headers:\n```js\nfakeHeaders.set(\"link\", \"<\".repeat(100000) + \">\");\nfakeHeaders.set(\"deprecation\", \"true\");\n```\nThe crafted `link` header consists of 100,000 consecutive `<` characters followed by a closing `>`. This input forces the regular expression engine to backtrack extensively in an attempt to match the pattern. As a result, the server can experience a significant increase in CPU usage, which may lead to denial of service, making the server unresponsive or even causing it to crash under load.\nThe issue is present in the following code:\n```js\nconst matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel=\"deprecation\"/);\n```\nIn this scenario, the `link` header value triggers the regex to perform excessive backtracking, resulting in resource exhaustion and potentially causing the service to become unavailable.\n\n### PoC\n[The gist of PoC.js](https://gist.github.com/ShiyuBanzhou/2afdabf0fc4cb6cfbd3b1d58b6082f6a)\n1. run npm i @octokit/request\n2. run 'node poc.js'\nresult:\n3. then the program will stuck forever with high CPU usage\n```js\nimport { request } from \"@octokit/request\";\nconst originalFetch = globalThis.fetch;\nglobalThis.fetch = async (url, options) => {\n  const response = await originalFetch(url, options);\n  const fakeHeaders = new Headers(response.headers);\n  fakeHeaders.set(\"link\", \"<\".repeat(100000) + \">\");\n  fakeHeaders.set(\"deprecation\", \"true\");\n  return new Response(response.body, {\n    status: response.status,\n    statusText: response.statusText,\n    headers: fakeHeaders\n  });\n};\nrequest(\"GET /repos/octocat/hello-world\")\n  .then(response => {\n    // console.log(\"[+] Response received:\", response);\n  })\n  .catch(error => {\n    // console.error(\"[-] Error:\", error);\n  });\n// globalThis.fetch = originalFetch;\n```\n### Impact\nThis is a *Denial of Service (DoS) vulnerability* caused by a *ReDoS (Regular Expression Denial of Service)* flaw. The vulnerability allows an attacker to craft a malicious `link` header that exploits the inefficient backtracking behavior of the regular expression used in the code.\nThe primary impact is the potential for *server resource exhaustion*, specifically high CPU usage, which can cause the server to become unresponsive or even crash when processing the malicious request. This affects the availability of the service, leading to downtime or degraded performance.\nThe vulnerability impacts any system that uses this specific regular expression to process `link` headers in HTTP responses. This can include:\n* Web applications or APIs that rely on parsing headers for deprecation information.\n* Users interacting with the affected service, as they may experience delays or outages if the server becomes overwhelmed.\n* Service providers who may face disruption in operations or performance degradation due to this flaw.\nIf left unpatched, the vulnerability can be exploited by any unauthenticated user who is able to send a specially crafted HTTP request with a malicious `link` header, making it a low-barrier attack that could be exploited by anyone.","state":0,"publishedAt":"2025-02-14T18:00:18+00:00","modifiedAt":"2026-09-10T03:50:06.1803154+00:00","affected":[{"ecosystem":"npm","name":"@octokit/request","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.0.0-beta.1"},{"kind":"fixed","version":"9.2.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@octokit/request","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"8.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/octokit/request.js/security/advisories/GHSA-rmvr-2pp2-xj38","https://nvd.nist.gov/vuln/detail/CVE-2025-25290","https://github.com/octokit/request.js/commit/34ff07ee86fc5c20865982d77391bc910ef19c68","https://github.com/octokit/request.js/commit/356411e3217019aa9fc8a68f4236af82490873c2","https://github.com/octokit/request.js/commit/6bb29ba92a52f7bf94469c3433707c682c17126c","https://github.com/octokit/request.js","https://github.com/octokit/request.js/releases/tag/v8.4.1","https://github.com/octokit/request.js/releases/tag/v9.2.1"],"sourceUrl":"https://github.com/advisories/GHSA-rmvr-2pp2-xj38","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rmvr-2pp2-xj38","identifiers":["GHSA-rmvr-2pp2-xj38","CVE-2025-25290"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T14:44:51.0354681+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T14:44:51.0354681+00:00","lastSuccessAt":"2026-11-16T14:44:51.2191988+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:51.2191997+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-c7e42aebd80e0c2307ddc550ecef29877d1c8891eaea04fabfc75498ab1ffe9c","complete":true,"records":426004,"lastAttemptAt":"2026-11-16T14:44:50.7345962+00:00","lastSuccessAt":"2026-11-16T14:44:50.6847077+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:50.7345962+00:00","snapshotPublishedAt":"2026-11-16T14:31:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e7b8d43557f44ad0b4e0a87d8bc9833b","complete":true,"records":13821,"lastAttemptAt":"2026-11-16T14:45:17.0377344+00:00","lastSuccessAt":"2026-11-16T13:45:32.439+00:00","error":null,"lastVerifiedAt":"2026-11-16T13:45:32.439+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13874,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T14:44:51.0354681+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T14:44:51.0354681+00:00","lastSuccessAt":"2026-11-16T14:44:51.2200779+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:51.2200784+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4b206dc3f3fc4572b101aa266f730110","complete":false,"records":13833,"lastAttemptAt":"2026-11-16T14:45:16.4505777+00:00","lastSuccessAt":"2026-11-16T14:45:16.447+00:00","error":"300 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T14:45:16.447+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13574,"expectedIdentifiers":13874,"failedIdentifiers":300},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T14:44:50.9903861+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:50.9903861+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T14:44:50.781369+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:50.781369+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T14:44:51.0024803+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:51.0024803+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-263d9c8d63997345727b11314d9b9377eba9fd4146f04497c069a15e332b60cb","complete":true,"records":232482,"lastAttemptAt":"2026-11-16T14:44:50.8876074+00:00","lastSuccessAt":"2026-11-16T07:32:30.5701252+00:00","error":null,"lastVerifiedAt":"2026-11-16T14:44:50.8876074+00:00","snapshotPublishedAt":"2026-11-16T06:48:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}