Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. nicegui
  4. ›
  5. CVE-2026-33332

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

March 19, 2026

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.

References

  • github.com/advisories/GHSA-w5g8-5849-vj76
  • github.com/zauberzeug/nicegui
  • github.com/zauberzeug/nicegui/security/advisories/GHSA-w5g8-5849-vj76
  • nvd.nist.gov/vuln/detail/CVE-2026-33332

Code Behaviors & Features

Detect and mitigate CVE-2026-33332 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.0

Fixed versions

  • 3.9.0

Solution

Upgrade to version 3.9.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/nicegui/CVE-2026-33332.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:12 +0000.