Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-25479— Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns

Quick assessment

Affected
litestar-org litestar
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Litestar是Litestar开源的一个强大、灵活但固执己见的 ASGI 框架。 Litestar 2.20.0之前版本存在安全漏洞,该漏洞源于允许列表条目编译方式不当,可能导致绕过主机名验证。

CVSS 6.5 · Medium EPSS 0.32% · P24

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-25479

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
不正确的正则表达式
Source: CVE Program / CVE List V5
Vulnerability Title
Litestar 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Litestar是Litestar开源的一个强大、灵活但固执己见的 ASGI 框架。 Litestar 2.20.0之前版本存在安全漏洞,该漏洞源于允许列表条目编译方式不当,可能导致绕过主机名验证。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
litestar-org litestar < 2.20.0 -

II. Public POCs for CVE-2026-25479

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25479

登录查看更多情报信息。

Vendor Advisories for CVE-2026-25479 (1)

Other References for CVE-2026-25479 (1)

Same Patch Batch · litestar-org · 2026-02-09 · 3 CVEs total

CVE-2026-25478 7.4 HIGH Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allow
CVE-2026-25480 6.5 MEDIUM FileStore key canonicalization collisions allow response cache mixup/poisoning (ASCII ord

IV. Related Vulnerabilities

V. Comments for CVE-2026-25479

No comments yet


Leave a comment