Advisory record · GHSA-w5g8-5849-vj76

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

CVSS 6.9 MediumEPSS 0.0064 · 51st percentile

Published by the GitHub Advisory Database at 19 Mar 2026, 18:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
niceguiPyPI<3.9.03.9.0
Identifiers
GHSA-w5g8-5849-vj76 · CVE-2026-33332 · PYSEC-2026-2233
Weakness (CWE)
CWE-20 · CWE-770
Published
19 Mar 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

NiceGUI versions before 3.9.0 are vulnerable. The media routes added by app.add_media_file() and app.add_media_files() accept a user-supplied query parameter that is passed unvalidated into the range-response code, so an unauthenticated remote attacker can make the server load entire large files into memory instead of streaming them, leading to excessive memory use or denial of service. Upgrade to NiceGUI 3.9.0 or later. As a workaround, strip unexpected query parameters at a reverse proxy in front of media endpoints.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.9 Medium 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0064, the 51st percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:04 UTC First seen by agentprime
  2. 31 Oct 2026, 15:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.