{"id":"EUVD-2025-4103","revision":null,"records":[{"revision":"b6f6d0e7f5714ba3975217209a583b3a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-25289","aliases":[],"title":"@octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","description":"@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and \"@\", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability. Version 6.1.7 contains a fix for the issue.","state":0,"publishedAt":"2025-02-14T19:35:19.998+00:00","modifiedAt":"2025-02-14T20:08:32.674+00:00","affected":[{"ecosystem":"Vendor product","name":"request-error.js","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"octokit\",\n                    \"product\": \"request-error.js\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.0.0, < 6.1.7\",\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-error.js/security/advisories/GHSA-xx4v-prfh-6cgc","https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e","https://github.com/octokit/request-error.js/blob/main/src/index.ts"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-25289","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-25289","identifiers":["CVE-2025-25289"]},"retained":false,"historicalAffected":[]},{"revision":"678b114631ee4be6816507c156a5a872","observedAt":"2026-11-15T03:39:09.109+00:00","statement":{"source":"euvd","id":"EUVD-2025-4103","aliases":["CVE-2025-25289","GHSA-xx4v-prfh-6cgc"],"title":"@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sen…","description":"@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and \"@\", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability. Version 6.1.7 contains a fix for 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-error.js/security/advisories/GHSA-xx4v-prfh-6cgc","https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e","https://github.com/octokit/request-error.js/blob/main/src/index.ts"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-4103","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Feb 14, 2025, 7:35:19 PM","dateUpdated":"Feb 14, 2025, 8:08:32 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-4103","identifiers":["EUVD-2025-4103","CVE-2025-25289","GHSA-xx4v-prfh-6cgc"]},"retained":false,"historicalAffected":[]},{"revision":"f2f7201c1eab413da8427ba0ce8dadbd","observedAt":"2026-10-25T01:17:35.189+00:00","statement":{"source":"nvd","id":"CVE-2025-25289","aliases":[],"title":"@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sen…","description":"@octokit/request-error is an error class for Octokit request errors. Starting in version 1.0.0 and prior to version 6.1.7, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and \"@\", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability. Version 6.1.7 contains a fix for the issue.","state":0,"publishedAt":"2025-02-14T20:15:35.1+00:00","modifiedAt":"2026-06-17T09:00:37.41+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-error.js/blob/main/src/index.ts","https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e","https://github.com/octokit/request-error.js/security/advisories/GHSA-xx4v-prfh-6cgc"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-25289","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-1333"],"productCriteria":[],"sourceDates":{"published":"2025-02-14T20:15:35.100","lastModified":"2026-06-17T09:00:37.410"},"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-25289","identifiers":["CVE-2025-25289"]},"retained":false,"historicalAffected":[]},{"revision":"589cb0b594be4e499688806051ae9718","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-xx4v-prfh-6cgc","aliases":["CVE-2025-25289"],"title":"@octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","description":"### Summary\nA Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and \"@\", an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption. This can significantly degrade server performance or cause a denial-of-service (DoS) condition, impacting availability.\n### Details\nThe issue occurs at [line 52](https://github.com/octokit/request-error.js/blob/main/src/index.ts) of iterator.ts in the @octokit/request-error repository.\nThe vulnerability is caused by the use of an inefficient regular expression in the handling of the `authorization` header within the request processing logic:\n```js\nauthorization: options.request.headers.authorization.replace(\n  / .*$/, \n  \" [REDACTED]\"\n)\n```\nThe regular expression `/ .*$/` matches a space followed by any number of characters until the end of the line. This pattern is vulnerable to Regular Expression Denial of Service (ReDoS) when processing specially crafted input. Specifically, an attacker can send an `authorization` header containing a long sequence of spaces followed by a newline and \"@\", such as:\n```js\nheaders: {\n  authorization: \"\" + \" \".repeat(100000) + \"\\n@\",\n}\n```\nDue to the way JavaScript's regular expression engine backtracks while attempting to match the space followed by arbitrary characters, this input can cause excessive CPU usage, significantly slowing down or even freezing the server. This leads to a denial-of-service condition, impacting availability.\n### PoC\n[The gist of PoC.js](https://gist.github.com/ShiyuBanzhou/e1203ad22701fd043b8501eb37676a0d)\n1. run npm i @octokit/request-error\n2. run 'node poc.js'\nresult:\n3. then the program will stuck forever with high CPU usage\n```js\nimport { RequestError } from \"@octokit/request-error\";\n\nconst error = new RequestError(\"Oops\", 500, {\n  request: {\n    method: \"POST\",\n    url: \"https://api.github.com/foo\",\n    body: {\n      bar: \"baz\",\n    },\n    headers: {\n      authorization: \"\"+\" \".repeat(100000)+\"\\n@\",\n    },\n  },\n  response: {\n    status: 500,\n    url: \"https://api.github.com/foo\",\n    headers: {\n      \"x-github-request-id\": \"1:2:3:4\",\n    },\n    data: {\n      foo: \"bar\",\n    },\n  },\n});\n```\n\n### Impact\n#### Vulnerability Type & Impact:\nThis is a `Regular Expression Denial of Service (ReDoS) vulnerability`, which occurs due to an inefficient regular expression (`/ .*$/`) used to sanitize the `authorization` header. An attacker can craft a malicious input that triggers excessive backtracking in the regex engine, leading to high CPU consumption and potential denial-of-service (DoS).\n#### Who is Impacted?\n* Projects or services using this code to process HTTP headers are vulnerable.\n* Applications that rely on user-supplied `authorization` headers are at risk, especially those processing a large volume of authentication requests.\n* Multi-tenant or API-driven platforms could experience degraded performance or service outages if exploited at scale.","state":0,"publishedAt":"2025-02-14T17:58:54+00:00","modifiedAt":"2026-09-10T03:50:06.1656291+00:00","affected":[{"ecosystem":"npm","name":"@octokit/request-error","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"5.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@octokit/request-error","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0"},{"kind":"fixed","version":"6.1.7"}]}],"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-error.js/security/advisories/GHSA-xx4v-prfh-6cgc","https://nvd.nist.gov/vuln/detail/CVE-2025-25289","https://github.com/octokit/request-error.js/commit/d558320874a4bc8d356babf1079e6f0056a59b9e","https://github.com/octokit/request-error.js","https://github.com/octokit/request-error.js/blob/main/src/index.ts"],"sourceUrl":"https://github.com/advisories/GHSA-xx4v-prfh-6cgc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xx4v-prfh-6cgc","identifiers":["GHSA-xx4v-prfh-6cgc","CVE-2025-25289"]},"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-16T21:26:22.1226934+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.353019+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.3530195+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-b7ae3bdb0699f2500ff81a2529250ecaa285d9a3824324996c109bf112b16dad","complete":true,"records":426173,"lastAttemptAt":"2026-11-16T21:26:21.5473051+00:00","lastSuccessAt":"2026-11-16T21:26:21.4103203+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.5473051+00:00","snapshotPublishedAt":"2026-11-16T21:21:33+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-f07cbea7dec4426c9e098dc06e262653","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T21:26:49.3867614+00:00","lastSuccessAt":"2026-11-16T20:48:05.528+00:00","error":null,"lastVerifiedAt":"2026-11-16T20:48:05.528+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13884,"expectedIdentifiers":13884,"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-16T21:26:22.1226934+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T21:26:22.1226934+00:00","lastSuccessAt":"2026-11-16T21:26:22.4130322+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.4130334+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-05d1c8ce07ac4b8a9be803d9f202f74d","complete":false,"records":13843,"lastAttemptAt":"2026-11-16T21:26:48.2924706+00:00","lastSuccessAt":"2026-11-16T21:26:48.286+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T21:26:48.286+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13884,"failedIdentifiers":10},{"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-16T21:26:21.9356446+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.9356446+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-16T21:26:21.7079424+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.7079424+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-16T21:26:22.0454831+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:22.0454831+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-d3135f0ae820c85dd153afd7ef11f8856f87d0924652a66bf0a06179e07249db","complete":true,"records":232552,"lastAttemptAt":"2026-11-16T21:26:21.8242462+00:00","lastSuccessAt":"2026-11-16T20:47:32.4854972+00:00","error":null,"lastVerifiedAt":"2026-11-16T21:26:21.8242462+00:00","snapshotPublishedAt":"2026-11-16T20:33:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}