Reliance on Untrusted Inputs in a Security Decision Affecting litestar package, versions [,2.18.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

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 applications
  • Snyk IDSNYK-PYTHON-LITESTAR-13433195
  • published8 Oct 2025
  • disclosed6 Oct 2025
  • creditcrum7

Introduced: 6 Oct 2025

NewCVE-2025-59152  (opens in a new tab)
CWE-807  (opens in a new tab)

How to fix?

Upgrade litestar to version 2.18.0 or higher.

Overview

litestar is a Litestar - A production-ready, highly performant, extensible ASGI API Framework

Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision due to the use of X-Forwarded-For header in the cache_key_from_request function. An attacker can circumvent rate limiting by sending requests with varying X-Forwarded-For header values, thereby creating separate rate limit buckets for each spoofed value.

CVSS Base Scores

version 4.0
version 3.1