CVE-2026-39844: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zauberzeug nicegui
CVE-2026-39844 is a path traversal vulnerability in the Python-based UI framework NiceGUI versions prior to 3. 10. 0. The issue arises because PurePosixPath only recognizes forward slashes as path separators, allowing an attacker on Windows to bypass sanitization by using backslashes in upload filenames. This can lead to arbitrary file write on Windows systems when applications construct file paths using file. name, a pattern shown in NiceGUI's examples. The vulnerability has a medium severity with a CVSS score of 5. 9 and is fixed in version 3. 10. 0.
AI Analysis
Technical Summary
NiceGUI versions before 3.10.0 are vulnerable to a path traversal attack (CWE-22) due to improper limitation of pathname to a restricted directory. The sanitization relies on PurePosixPath which only recognizes forward slashes, enabling attackers on Windows to use backslashes in filenames to bypass checks. This allows arbitrary file writes when the application constructs file paths from the uploaded file's name. The vulnerability is resolved in NiceGUI 3.10.0.
Potential Impact
An attacker can exploit this vulnerability on Windows systems to write arbitrary files outside the intended directory by uploading files with specially crafted filenames containing backslashes. This can lead to unauthorized modification of files, potentially impacting the integrity of the system or application data. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in NiceGUI version 3.10.0. Users should upgrade to version 3.10.0 or later to remediate the issue. Since no official patch link or advisory is provided, verify the upgrade availability from the vendor's official sources. Patch status is not explicitly confirmed beyond the fix in 3.10.0, so check vendor advisories for the latest remediation guidance.
CVE-2026-39844: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zauberzeug nicegui
Description
CVE-2026-39844 is a path traversal vulnerability in the Python-based UI framework NiceGUI versions prior to 3. 10. 0. The issue arises because PurePosixPath only recognizes forward slashes as path separators, allowing an attacker on Windows to bypass sanitization by using backslashes in upload filenames. This can lead to arbitrary file write on Windows systems when applications construct file paths using file. name, a pattern shown in NiceGUI's examples. The vulnerability has a medium severity with a CVSS score of 5. 9 and is fixed in version 3. 10. 0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NiceGUI versions before 3.10.0 are vulnerable to a path traversal attack (CWE-22) due to improper limitation of pathname to a restricted directory. The sanitization relies on PurePosixPath which only recognizes forward slashes, enabling attackers on Windows to use backslashes in filenames to bypass checks. This allows arbitrary file writes when the application constructs file paths from the uploaded file's name. The vulnerability is resolved in NiceGUI 3.10.0.
Potential Impact
An attacker can exploit this vulnerability on Windows systems to write arbitrary files outside the intended directory by uploading files with specially crafted filenames containing backslashes. This can lead to unauthorized modification of files, potentially impacting the integrity of the system or application data. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in NiceGUI version 3.10.0. Users should upgrade to version 3.10.0 or later to remediate the issue. Since no official patch link or advisory is provided, verify the upgrade availability from the vendor's official sources. Patch status is not explicitly confirmed beyond the fix in 3.10.0, so check vendor advisories for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T19:13:20.377Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d6bc281cc7ad14daadeae3
Added to database: 4/8/2026, 8:35:52 PM
Last enriched: 4/16/2026, 12:15:05 PM
Last updated: 5/24/2026, 10:53:14 AM
Views: 77
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.