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

CVE-2026-25732: NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write

February 5, 2026 (updated June 6, 2026)

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.

References

  • github.com/advisories/GHSA-9ffm-fxg3-xrhh
  • github.com/pypa/advisory-database/tree/main/vulns/nicegui/PYSEC-2026-95.yaml
  • github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py
  • github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py
  • github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh
  • nvd.nist.gov/vuln/detail/CVE-2026-25732

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.7.0

Fixed versions

  • 3.7.0

Solution

Upgrade to version 3.7.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/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')
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/nicegui/CVE-2026-25732.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:33 +0000.