{"cve":"CVE-2026-25732","nvd":{"published":"2026-02-06T22:16:11.993","modified":"2026-06-17T10:25:07.703","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-22"],"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#L79-L82","https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh"],"products":["zauberzeug:nicegui"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-25732","score":0.03429,"percentile":0.88934,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-9ffm-fxg3-xrhh","url":"https://osv.dev/vulnerability/GHSA-9ffm-fxg3-xrhh","summary":"NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write","modified":"2026-06-06T15:00:08.265366851Z","packages":[{"ecosystem":"PyPI","name":"nicegui","purl":"pkg:pypi/nicegui","ranges":["<3.7.0"],"fixed":["3.7.0"]}]},{"id":"PYSEC-2026-95","url":"https://osv.dev/vulnerability/PYSEC-2026-95","summary":"","modified":"2026-05-20T09:19:09.073192Z","packages":[{"ecosystem":"PyPI","name":"nicegui","purl":"pkg:pypi/nicegui","ranges":["<3.7.0"],"fixed":["3.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}