{
  "id": "CVE-2026-25478",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-25478",
  "published_at": "2026-02-09T18:46:56.445Z",
  "title": "Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins",
  "vendor": "litestar-org",
  "product": "litestar",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, CORSConfig.allowed_origins_regex is constructed using a regex built from configured allowlist values and used with fullmatch() for validation. Because metacharacters are not escaped, a malicious origin can match unexpectedly. The check relies on allowed_origins_regex.fullmatch(origin). This vulnerability is fixed in 2.20.0.",
  "cwe": "CWE-942",
  "cpes": [
    "cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.4,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "litestar-org",
        "product": "litestar",
        "ranges": [
          "\u003c 2.20.0"
        ],
        "fixed_in": [
          "2.20.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade litestar to 2.20.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/litestar-org/litestar/commit/eb87703b309efcc0d1b087dcb12784e76b003d5a"
      },
      {
        "kind": "Release notes",
        "url": "https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/litestar-org/litestar/releases/tag/v2.20.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
