{
  "id": "CVE-2025-25200",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-25200",
  "published_at": "2025-02-12T17:59:04.615Z",
  "title": "Koa has Inefficient Regular Expression Complexity",
  "vendor": "koajs",
  "product": "koa",
  "cvss": {
    "score": 9.2,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-03-22T22:51:14Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 403.2,
    "repo": "dwictor0/PoC-CVE-2025-25200",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Koa is expressive middleware for Node.js using ES2017 async functions. Prior to versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3, Koa uses an evil regex to parse the `X-Forwarded-Proto` and `X-Forwarded-Host` HTTP headers. This can be exploited to carry out a Denial-of-Service attack. Versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3 fix the issue.",
  "cwe": "CWE-1333",
  "cpes": [
    "cpe:2.3:a:koajs:koa:*:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:koajs:koa:3.0.0:alpha0:*:*:*:node.js:*:*",
    "cpe:2.3:a:koajs:koa:3.0.0:alpha1:*:*:*:node.js:*:*",
    "cpe:2.3:a:koajs:koa:3.0.0:alpha2:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.2,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "dwictor0/PoC-CVE-2025-25200",
      "url": "https://github.com/dwictor0/PoC-CVE-2025-25200",
      "created_at": "2026-03-22T22:51:14Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-08-27T22:09:17Z"
    },
    {
      "repo": "gduma-phData/patch-CVE-2025-25200",
      "url": "https://github.com/gduma-phData/patch-CVE-2025-25200",
      "created_at": "2026-08-24T03:04:24Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-11-13T20:03:11Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "koajs",
        "product": "koa",
        "ranges": [
          "\u003c 0.21.2",
          "\u003e= 1.0.0, \u003c 1.7.1",
          "\u003e= 2.0.0-alpha.1, \u003c 2.15.4",
          "\u003e= 3.0.0-alpha.0, \u003c \u003c 3.0.0-alpha.3"
        ],
        "fixed_in": [
          "0.21.2",
          "1.7.1",
          "2.15.4",
          "3.0.0-alpha.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade koa to 0.21.2 or 1.7.1 or 2.15.4 or 3.0.0-alpha.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/koajs/koa/security/advisories/GHSA-593f-38f6-jp5m"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/koajs/koa/commit/5054af6e31ffd451a4151a1fe144cef6e5d0d83c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/koajs/koa/commit/5f294bb1c7c8d9c61904378d250439a321bffd32"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/koajs/koa/commit/93fe903fc966635a991bcf890cfc3427d33a1a08"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/koajs/koa/releases/tag/2.15.4"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "headers": [
        {
          "name": "X-Forwarded-For",
          "value": "{var}!"
        }
      ],
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "dwictor0/PoC-CVE-2025-25200"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "dwictor0/PoC-CVE-2025-25200/exploit/main.go:20"
      ]
    }
  ],
  "rules": []
}
