PT-2026-31353 · Nicegui · Nicegui

CVE-2026-39844

·

Published

2026-04-08

·

Updated

2026-04-08

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions NiceGUI versions prior to 3.10.0
Description NiceGUI, a Python-based UI framework, is susceptible to arbitrary file write on Windows due to insufficient sanitization of uploaded filenames. The PurePosixPath function used for sanitization only recognizes forward slashes (/) as path separators. This allows an attacker to bypass sanitization by using backslashes () in the filename. Applications constructing file paths using file.name are particularly vulnerable. This can lead to arbitrary file write, potential remote code execution through overwriting application files, and data integrity loss.
Recommendations Upgrade to NiceGUI version 3.10.0 or later to resolve this issue.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-39844
GHSA-W8WV-VFPC-HW2W
PYSEC-2026-2234

Affected Products

Nicegui