PT-2026-7136 · Litestar · Litestar
Sirdorblu
·
Published
2026-02-09
·
Updated
2026-02-09
·
CVE-2026-25479
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Litestar versions prior to 2.20.0
Description
Litestar’s allowed hosts validation can be bypassed because configured host patterns are converted into regular expressions without escaping regex metacharacters. Specifically, the
. metacharacter retains its special meaning, allowing an attacker to supply a host that matches the regex but is not the intended literal hostname. This issue affects applications relying on the AllowedHosts middleware to prevent Host header attacks, potentially leading to security control bypasses. The vulnerable component is litestar.middleware.allowed hosts. The vulnerable parameter is the allowed hosts configuration.Recommendations
Update to Litestar version 2.20.0 or later.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Litestar