Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-25480 — litestar

🟡 CVSS 6.5 — Medium ⚠️ Exploit Public CWE-176 OSV
6.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Litestar's FileStore key canonicalization collisions allow response cache mixup/poisoning (ASCII ord + Unicode NFKD)

Summary

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)

Details

litestar.stores.file._safe_file_name() normalizes input with unicodedata.normalize("NFKD", name) and builds the filename by concatenating c if alphanumeric else str(ord(c)) (no delimiter).

This transformation is not injective, e.g.:

  • "k-" and "k45" both become "k45" (because - ord('-') == 45)
  • "k/\n" becomes "k4710", colliding with "k4710"
  • "K" (Kelvin sign) normalizes to "K", colliding with "K"

When used in response caching, the default cache key includes request path and sorted query params, which are attacker-controlled.

PoC

```

import asyncio, tempfile

from litestar.stores.file import FileStore

async def main():

d = tempfile.mkdtemp(prefix="ls_filestore_poc_")

store = FileStore(d, create_directories=True)

await store.__aenter__()

# 1) ASCII ord-collision: "-" -> 45

await store.set("k-", b"A")

v = await store.get("k45")

print("k- ->", v)

print("k45 ->", await store.get("k45"))

if v == b"A":

print("VULNERABLE: 'k-' collides with 'k45'")

# 2) NFKD collision: Kelvin sign -> K

await store.set("K", b"B") # U+212A

v2 = await store.get("K")

print("K ->", await store.get("K"))

print("K ->", v2)

if v2 == b"B":

print("VULNERABLE: 'K' collides with 'K' (NFKD)")

if __name__ == "__main__":

asyncio.run(main())

```

Impact

Vulnerability type: cache poisoning / cache key collision.

Impacted deployments: applications using Litestar response caching with FileStore backend (or any attacker-influenced keying into FileStore).

Possible impact: serving incorrect cached content across distinct URLs, potential confidentiality/integrity issues depending on what endpoints are cached.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Weakness class

CVE-2026-25480 is classified as CWE-176: Improper Handling of Unicode Encoding. The product does not properly handle when an input contains Unicode encoding.

Affected software

CVE-2026-25480 is recorded against 1 package.

  • litestar (from 2.19.0 up to 2.20.0)

Timeline and source

Published on 9 February 2026 and last revised on 13 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
docs.litestar.dev (Web)
github.com (Package)
github.com (Web)

Other advisories for this package

litestar has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-176: Improper Handling of Unicode Encoding) in other software:

Details

Severity MEDIUM
CVSS Score 6.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CWE CWE-176
Public Exploit ⚠️ Yes
Source OSV
Published 2026-02-09
Updated 2026-08-20
Modified 2026-07-13

Affected Packages

Software From version Fixed in
litestar 2.19.0 2.20.0

Similar Threats

Exploit Protection

Are you running litestar?

CVE-2026-25480 carries CVSS 6.5 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-25480 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026