{"id":"CVE-2026-25732","published":"2026-02-06T21:09:58Z","modified":"2026-02-09T15:27:21Z","title":"NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write","vendor":"zauberzeug","product":"nicegui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03492,"percentile":0.89902,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115","tags":["x_refsource_MISC"]},{"url":"https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82","tags":["x_refsource_MISC"]}],"priority":{"score":28.2,"factors":[{"name":"EPSS percentile","points":17.98},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-04-30"},"first":{"date":"2026-04-30","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52534"},"provenance":"source"},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":["< 3.7.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-09T15:21:57.559457Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":["<3.7.0"],"patched":["3.7.0"],"from":["GHSA-9ffm-fxg3-xrhh","PYSEC-2026-95"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-5568","exploited":false,"provenance":"source"},"exploits":[{"id":52534,"url":"https://www.exploit-db.com/exploits/52534","title":"NiceGUI 3.6.1 - Path Traversal","date":"2026-04-30","verified":false,"provenance":"source"}],"lineage":{"packageHistory":[{"cve":"CVE-2026-21873","published":"2026-01-08","fixed":"3.5.0","kev":false},{"cve":"CVE-2026-21874","published":"2026-01-08","fixed":"3.5.0","kev":false},{"cve":"CVE-2026-25516","published":"2026-02-06","fixed":"3.7.0","kev":false},{"cve":"CVE-2026-25732","published":"2026-02-06","fixed":"3.7.0","kev":false},{"cve":"CVE-2026-27156","published":"2026-02-24","fixed":"3.8.0","kev":false,"link":{"from":"CVE-2026-25732","to":"CVE-2026-27156","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nicegui","fromFixed":"3.7.0","toFixed":"3.8.0","daysApart":18}]}},{"cve":"CVE-2026-33332","published":"2026-03-24","fixed":"3.9.0","kev":false},{"cve":"CVE-2026-39844","published":"2026-04-08","fixed":"3.10.0","kev":false}],"package":"PyPI:nicegui"}}