{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-25479","id":"CVE-2026-25479","title":"Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns","description":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. T","descriptionLong":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. This vulnerability is fixed in 2.20.0.","published":"2026-02-09T18:48:19.971Z","updated":"2026-11-11T10:30:52.205667516Z","reserved":"2026-02-02T16:31:35.821Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["litestar-org litestar"],"affectedProducts":[{"vendor":"litestar-org","product":"litestar","defaultStatus":null,"versions":[{"version":"< 2.20.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":[">=2.19.0 <2.20.0","<2.20.0"],"fixed":["2.20.0"],"advisory":"GHSA-93ph-p7v4-hwh4"}],"cwes":["CWE-185"],"aliases":["GHSA-93ph-p7v4-hwh4","PYSEC-2026-2196"],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web","evidence"]},{"url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","tags":["x_refsource_MISC","Release Notes","web","advisory"]},{"url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC","Release Notes","web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25479.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25479","tags":["advisory"]},{"url":"https://github.com/litestar-org/litestar","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00353,"epssPercentile":0.29553,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-25479","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25479","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-25479","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-93ph-p7v4-hwh4","ok":true,"note":"GHSA-93ph-p7v4-hwh4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-25479","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}