CVE-2026-25732
NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI's …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115
- github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82
- github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh
- nvd.nist.gov/vuln/detail/CVE-2026-25732
- github.com/advisories/GHSA-9ffm-fxg3-xrhh
- github.com/pypa/advisory-database/tree/main/vulns/nicegui/PYSEC-2026-95.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-25732
- cve.org/CVERecord?id=CVE-2026-25732
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.