VDB
Sign up
MEDIUM6.5

PYSEC-2026-2197

Quick fix

PYSEC-2026-2197 — litestar: upgrade to the fixed version with the command below.

pip install --upgrade 'litestar>=2.20.0'

Details

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, FileStore maps cache keys to filenames using Unicode NFKD normalization and ord() substitution without separators, creating key collisions. When FileStore is used as response-cache backend, an unauthenticated remote attacker can trigger cache key collisions via crafted paths, causing one URL to serve cached responses of another (cache poisoning/mixup). This vulnerability is fixed in 2.20.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/litestar
Introduced in: 0Fixed in: 2.20.0
Fixpip install --upgrade 'litestar>=2.20.0'

References