Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. nicegui
  4. ›
  5. CVE-2026-39844

CVE-2026-39844: NiceGUI: Upload filename sanitization bypass via backslashes allows path traversal on Windows

April 8, 2026 (updated April 9, 2026)

The upload filename sanitization introduced in GHSA-9ffm-fxg3-xrhh uses PurePosixPath(filename).name to strip path components. Since PurePosixPath only recognizes forward slashes (/) as path separators, an attacker can bypass this sanitization on Windows by using backslashes (\) in the upload filename.

Applications that construct file paths using file.name (a pattern demonstrated in NiceGUI’s bundled examples) are vulnerable to arbitrary file write on Windows.

References

  • github.com/advisories/GHSA-w8wv-vfpc-hw2w
  • github.com/zauberzeug/nicegui
  • github.com/zauberzeug/nicegui/commit/d38a702e3af2da5b0708f689be8d71413fc77056
  • github.com/zauberzeug/nicegui/releases/tag/v3.10.0
  • github.com/zauberzeug/nicegui/security/advisories/GHSA-w8wv-vfpc-hw2w
  • nvd.nist.gov/vuln/detail/CVE-2026-39844

Code Behaviors & Features

Detect and mitigate CVE-2026-39844 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.10.0

Fixed versions

  • 3.10.0

Solution

Upgrade to version 3.10.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/nicegui/CVE-2026-39844.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:01 +0000.