Skip to main content
← All vulnerabilities
CVE-2026-33332PYSEC-2026-2233GHSA-W5G8-5849-VJ76

NiceGUI's unvalidated chunk size parameter in media routes can cause memory exhaustion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • zauberzeug nicegui

    fixed in 3.9.0

  • niceguiPyPI

    fixed in 3.9.0

References 3

GitHub · zauberzeug/nicegui