{"id":"CVE-2025-25285","published":"2025-02-14T19:31:44Z","modified":"2025-02-14T19:44:09Z","title":"@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking","vendor":"octokit","product":"endpoint.js","tier":"tail","description":{"text":"@octokit/endpoint turns REST API endpoints into generic request options. Starting in version 4.1.0 and prior to version 10.1.3, by crafting specific `options` parameters, the `endpoint.parse(options)` call can be triggered, leading to a regular expression denial-of-service (ReDoS) attack. This causes the program to hang and results in high CPU utilization. The issue occurs in the `parse` function within the `parse.ts` file of the npm package `@octokit/endpoint`. Version 10.1.3 contains a patch for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00654,"percentile":0.52261,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8","tags":["x_refsource_MISC"]},{"url":"https://github.com/octokit/endpoint.js/blob/main/src/parse.ts","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":10.45},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"octokit","affectedVersions":[{"vendor":"octokit","product":"endpoint.js","versions":[">= 4.1.0, < 10.1.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-14T19:42:58.912811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@octokit/endpoint","vulnerableRanges":[">=9.0.5, <9.0.6",">=10.0.0, <10.1.3"],"patched":["9.0.6","10.1.3"],"from":["GHSA-x4c5-c7rf-jjgv"],"provenance":"source"}],"summary":{"text":"The regular expression in the parse function of the parse.ts file in @octokit/endpoint (endpoint.js, from Octokit) is vulnerable to catastrophic backtracking, affecting versions 4.1.0 up to but not including 10.1.3. An attacker with network access can send crafted options parameters to endpoint.parse(options), without authentication or user interaction, causing a regular expression denial-of-service that hangs the program and drives CPU utilisation high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:19Z"},"euvd":{"id":"EUVD-2025-4099","exploited":false,"provenance":"source"}}