---
schema_version: '1.0'
id: security-20260812-050230
title: CVE-2026-33332 — nicegui
url: https://osv.dev/vulnerability/PYSEC-2026-2233
url_hash: 0502300bff9061878f1ddae3cacae35de60ca8682c7b10741f436cb4ce8c3723
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-2233
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-33332
- PYSEC-2026-2233
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- nicegui
- PyPI
lang: en
published_at: '2026-03-24T20:16:28Z'
fetched_at: '2026-08-12T16:00:04.514728Z'
updated_at: '2026-08-22T14:45:11Z'
status: published
content_hash: e6ae855a70d4fba8e94b38a8d9fbfdf20ff8ebe79ab8f0df502a331accecdeaf
content_changed_at: '2026-08-22T13:15:21.601902Z'
license_note: full
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 implem
summary_source: rss
summary_en: 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 implem
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-33332
- library vulnerability
- nicegui
- PyPI
- PYSEC-2026-2233
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:45:07Z'
---

# CVE-2026-33332 — nicegui

## TL;DR
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 implem

## Key Points
- cve / CVE-2026-33332 / PYSEC-2026-2233 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H / nicegui / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
**Advisory:** PYSEC-2026-2233 (CVE-2026-33332)

**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.

**References:**
- https://github.com/zauberzeug/nicegui/releases/tag/v3.9.0
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-w5g8-5849-vj76
- https://github.com/zauberzeug/nicegui/commit/9026962b8c4f3f225c98b2fbc35aa6b60cb3495b

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-2233_

## Source
元記事: [CVE-2026-33332 — nicegui](https://osv.dev/vulnerability/PYSEC-2026-2233) — published 2026-03-24T20:16:28Z
