CVE-2026-25732CWE-22

NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write

High · published February 6, 2026

CVSS v3.1
7.5
EPSS
3%
Percentile
88.4
In the wild
Unconfirmed
What it is

⚠️ A sneaky path traversal flaw in NiceGUI is exposing your app's vulnerabilities! Prior to version 3.7.0, malicious filenames could let attackers write files like they're sneaking extra toppings on your pizza order. 🍕 Think of it like a restaurant that lets customers write their own takeout order without verifying it. If an order comes in saying, 'add cheese to my pizza and also deliver it to the manager’s office,' they might just deliver it without checking, leading to unintended chaos! If exploited, an attacker could overwrite files outside of the intended directory with malicious payloads, possibly leading to remote code execution. This means they could take control of your application, hijacking it for their own dastardly purposes! The potential for damage is absolutely devastating and could compromise the entire system.

Put simply

Think of it like a restaurant that lets customers write their own takeout order without verifying it. If an order comes in saying, 'add cheese to my pizza and also deliver it to the manager’s office,' they might just deliver it without checking, leading to unintended chaos! The vulnerability in NiceGUI's FileUpload.name property allows attackers to exploit unsanitized client-supplied filenames. If developers use these filenames directly in filesystem paths, they open the door for attackers to perform path traversal attacks.

What to do

If exploited, an attacker could overwrite files outside of the intended directory with malicious payloads, possibly leading to remote code execution. This means they could take control of your application, hijacking it for their own dastardly purposes! The potential for damage is absolutely devastating and could compromise the entire system. To remediate this vulnerability, update NiceGUI to version 3.7.0 or later immediately. Also, ensure that any filenames from uploads are sanitized properly and avoid directly incorporating them into filesystem paths. Always validate user input! You’ve got this! With a quick update and a bit of vigilance, you can secure your application like a pro! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.03278 · 88.4th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-02-06T21:09Z
EPSS history
Timeline
  • 06 FEB 21:09Z
    NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write
    cvelistv5