Skip to content
Heist/ feed
Back to feed
Medium

@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

Type: advisorySources: OSV

@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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-25285
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:31 UTC · Revision 1

Source evidence

@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking

core-osv · Original source

Published 14 Feb 2025, 19:31 UTC

@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.

osv:CVE-2025-25285
Complete source record
{
  "id": "c95c58c2c17e5a8a9a2d63a4749bb6db71dfb1bf8482da376fdd9792294102f3",
  "url": "https://osv.dev/vulnerability/CVE-2025-25285",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "@octokit/endpoint has a Regular Expression in parse that Leads to ReDoS Vulnerability Due to Catastrophic Backtracking",
    "summary": "@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.",
    "evidence": "osv:CVE-2025-25285",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-25285",
      "aliases": [
        "CVE-2025-25285",
        "GHSA-x4c5-c7rf-jjgv"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/octokit/endpoint.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a87ff65e2f45684115fa32da4d4f688a5e28668c"
                },
                {
                  "fixed": "d6cf1ad777b22f80b6f6ae88c03b4ed4139dd2d2"
                },
                {
                  "fixed": "6c9c5be033c450d436efb37de41b6470c22f7db8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "fixed": "10.1.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6c9c5be033c450d436efb37de41b6470c22f7db8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v10.1.2",
            "v10.1.1",
            "v10.1.0",
            "v9.0.4",
            "v10.0.1",
            "v10.0.0",
            "v9.0.3",
            "v9.0.2",
            "v9.0.1",
            "v9.0.0",
            "v8.0.1",
            "v8.0.0",
            "v7.0.6",
            "v7.0.5",
            "v7.0.4",
            "v7.0.3",
            "v7.0.2",
            "v7.0.1",
            "v7.0.0",
            "v6.0.12",
            "v6.0.11",
            "v6.0.10",
            "v6.0.9",
            "v6.0.8",
            "v6.0.7",
            "v6.0.6",
            "v6.0.5",
            "v6.0.4",
            "v6.0.3",
            "v6.0.2",
            "v6.0.1",
            "v6.0.0",
            "v5.5.3",
            "v5.5.2",
            "v5.5.1",
            "v5.5.0",
            "v5.4.1",
            "v5.4.0",
            "v5.3.6",
            "v5.3.5",
            "v5.3.4",
            "v5.3.3",
            "v5.3.2",
            "v5.3.1",
            "v5.3.0",
            "v5.2.2",
            "v5.2.1",
            "v5.2.0",
            "v5.1.8",
            "v5.1.7",
            "v5.1.6",
            "v5.1.5",
            "v5.1.4",
            "v5.1.3",
            "v5.1.2",
            "v5.1.1",
            "v5.1.0",
            "v5.0.1",
            "v5.0.0",
            "v4.2.2",
            "v4.2.1",
            "v4.2.0",
            "v4.1.1",
            "v4.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-25285.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.908681562Z",
      "provider": "osv",
      "references": [
        "https://github.com/octokit/endpoint.js/blob/main/src/parse.ts",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25285.json",
        "https://github.com/octokit/endpoint.js/security/advisories/GHSA-x4c5-c7rf-jjgv",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-25285",
        "https://github.com/octokit/endpoint.js/commit/6c9c5be033c450d436efb37de41b6470c22f7db8"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25285.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-25285",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506195,
  "published_at": "2025-02-14T19:31:44.827+00:00"
}