litestar@2.0.1 vulnerabilities

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

Direct Vulnerabilities

Known vulnerabilities in the litestar package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Allocation of Resources Without Limits or Throttling

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

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of size limits or size checks when reading the request body into memory via await self.body().

Note: All Litestar applications that process json, msgpack or form-data submission requests are affected

How to fix Allocation of Resources Without Limits or Throttling?

Upgrade litestar to version 2.13.0 or higher.

[,2.13.0)
  • H
Path Traversal

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

Affected versions of this package are vulnerable to Path Traversal through the static content serving function. An attacker can gain unauthorized access to sensitive files outside the designated directories by exploiting path traversal flaws in the file path handling mechanism.

Notes:

  1. From versions 0.X.X through 1.X.X, the package was released under the name "starlite."

  2. Starting with version 2.0.0 and for all subsequent versions, the package has been rebranded and released under the name "litestar."

How to fix Path Traversal?

Upgrade litestar to version 2.6.4, 2.7.2, 2.8.3 or higher.

[2.0.0,2.6.4) [2.7.0,2.7.2) [2.8.0,2.8.3)