{"id":"CVE-2026-25732","state":"PUBLISHED","title":"NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write","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.","publishedAt":"2026-02-06T21:09:58.389Z","updatedAt":"2026-02-09T15:27:21.089Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["zauberzeug nicegui"],"affected":[{"vendor":"zauberzeug","product":"nicegui","versions":[{"version":"< 3.7.0","status":"affected"}]}],"references":["https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh","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"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/25xxx/CVE-2026-25732.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-25732","state":"PUBLISHED","datePublished":"2026-02-06T21:09:58.389Z","dateUpdated":"2026-02-09T15:27:21.089Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-05T16:48:00.427Z"},"containers":{"cna":{"title":"NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"zauberzeug","product":"nicegui","versions":[{"version":"< 3.7.0","status":"affected"}]}],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh","name":"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","name":"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","name":"https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-06T21:09:58.389Z"},"source":{"advisory":"GHSA-9ffm-fxg3-xrhh","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-02-09T15:21:57.559457Z","id":"CVE-2026-25732","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-09T15:27:21.089Z"}}]}}}