{"id":"CVE-2026-25479","state":"PUBLISHED","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. This vulnerability is fixed in 2.20.0.","publishedAt":"2026-02-09T18:48:19.971Z","updatedAt":"2026-02-10T16:01:11.941Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["litestar-org litestar"],"affected":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":["https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","https://github.com/litestar-org/litestar/releases/tag/v2.20.0"],"weaknesses":["CWE-185"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/25xxx/CVE-2026-25479.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-25479","state":"PUBLISHED","datePublished":"2026-02-09T18:48:19.971Z","dateUpdated":"2026-02-10T16:01:11.941Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-02T16:31:35.821Z"},"containers":{"cna":{"title":"Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","name":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","name":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","tags":["x_refsource_MISC"]},{"url":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","name":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","name":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-185","lang":"en","description":"CWE-185: Incorrect Regular Expression","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-09T18:48:19.971Z"},"source":{"advisory":"GHSA-93ph-p7v4-hwh4","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-02-10T15:39:53.590127Z","id":"CVE-2026-25479","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-10T16:01:11.941Z"}}]}}}