Advisory

PYSEC-2026-2233

Also known as: CVE-2026-33332, GHSA-w5g8-5849-vj76

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-03-24 20:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

nicegui

PyPI · All systems

Affected

  • introduced 0, fixed 3.9.0 (ecosystem)

Fixed versions

3.9.0

Fix

  • Fixed version 3.9.0
    pip install --upgrade nicegui==3.9.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences