Vulnerability · Published Mar 24, 2026 · Assigned by GitHub_M

CVE-2026-33332NiceGUI's unvalidated chunk size parameter in media routes can cause memory exhaustion

Medium 6.9

In plain English

A medium-severity improper input validation in nicegui from zauberzeug. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.6%top 50.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

NiceGUI is a Python-based UI framework. Prior to version 3.9.0, NiceGUI's app.add_media_file() and app.add_media_files() media routes accept a user-controlled query parameter that influences how files are read during streaming. The parameter is passed to the range-response implementation without validation, allowing an attacker to bypass chunked streaming and force the server to load entire files into memory at once. With large media files and concurrent requests, this can lead to excessive memory consumption, degraded performance, or denial of service. This issue has been patched in version 3.9.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPInicegui3.9.0GHSA-w5g8-5849-vj76
PyPInicegui3.9.0PYSEC-2026-2233

Affected products (as reported)

VendorProductVersions
zauberzeug nicegui < 3.9.0

Weakness: CWE-20, CWE-770 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References