CVE-2026-25732

NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI's FileUpload.name property exposes client-supplied filename metadata without sanitization, enabling path traversal when developers use the pattern UPLOAD_DIR / file.name. Malicious filenames containing ../ sequences allow attackers to write files outside intended directories, with potential for remote code execution through application file overwrites in vulnerable deployment patterns. This design creates a prevalent security footgun affecting applications following common community patterns. Note: Exploitation requires application code incorporating file.name into filesystem paths without sanitization. Applications using fixed paths, generated filenames, or explicit sanitization are not affected. This vulnerability is fixed in 3.7.0.
Configurations

Configuration 1 (hide)

cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:25

Type Values Removed Values Added
Summary
  • (es) NiceGUI es un framework de UI basado en Python. Antes de la versión 3.7.0, la propiedad FileUpload.name de NiceGUI expone metadatos de nombre de archivo proporcionados por el cliente sin sanitización, lo que permite el salto de ruta cuando los desarrolladores usan el patrón UPLOAD_DIR / file.name. Nombres de archivo maliciosos que contienen secuencias ../ permiten a los atacantes escribir archivos fuera de los directorios previstos, con potencial de ejecución remota de código a través de la sobrescritura de archivos de la aplicación en patrones de despliegue vulnerables. Este diseño crea un riesgo de seguridad autoinducido prevalente que afecta a las aplicaciones que siguen patrones comunes de la comunidad. Nota: La explotación requiere código de aplicación que incorpore file.name en las rutas del sistema de archivos sin sanitización. Las aplicaciones que usan rutas fijas, nombres de archivo generados o sanitización explícita no se ven afectadas. Esta vulnerabilidad está corregida en la versión 3.7.0.

20 Feb 2026, 15:44

Type Values Removed Values Added
First Time Zauberzeug
Zauberzeug nicegui
References () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115 - () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115 - Patch
References () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82 - () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82 - Patch
References () https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh - () https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh - Exploit, Mitigation, Vendor Advisory
CPE cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*

06 Feb 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-06 22:16

Updated : 2026-06-17 10:25


NVD link : CVE-2026-25732

Mitre link : CVE-2026-25732

CVE.ORG link : CVE-2026-25732


JSON object : View

Products Affected

zauberzeug

  • nicegui
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')