Skip to content
MediumVulnerability

GHSA-w8wv-vfpc-hw2w: NiceGUI: Upload filename sanitization bypass via backslashes allows path traversal on Windows

Published
Record updated
View JSON
Affected
  • nicegui <= 3.9.0
Fixed in
3.10.0
  • released April 7, 2026, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

NiceGUI's upload filename sanitization, introduced in GHSA-9ffm-fxg3-xrhh, uses PurePosixPath(filename).name, which only treats forward slashes as separators. On Windows, an attacker can use backslashes in an upload filename to bypass this, enabling arbitrary file write outside the intended upload directory in applications that build paths from file.name. The impact includes data integrity loss and potential remote code execution, while Linux and macOS are not affected.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.