A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-39844

CVE-2026-39844: Zauberzeug NiceGUI Path Traversal Flaw

CVE-2026-39844 is a path traversal vulnerability in Zauberzeug NiceGUI that allows attackers to write arbitrary files on Windows systems. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: May 14, 2026

CVE-2026-39844 Overview

CVE-2026-39844 is a path traversal vulnerability [CWE-22] in NiceGUI, a Python-based UI framework maintained by Zauberzeug. The flaw affects all versions prior to 3.10.0 when deployed on Microsoft Windows. NiceGUI's upload sanitization relies on PurePosixPath, which only treats forward slashes as path separators. Attackers can supply filenames containing backslashes (\) to bypass the sanitization and write files outside the intended upload directory. Applications that construct file paths from file.name — a pattern shown in NiceGUI's bundled examples — are exposed to arbitrary file write on Windows hosts.

Critical Impact

Unauthenticated network attackers can write arbitrary files on Windows systems running vulnerable NiceGUI applications, enabling code execution through file overwrite on writable application paths.

Affected Products

  • Zauberzeug NiceGUI versions prior to 3.10.0
  • Microsoft Windows hosts running affected NiceGUI applications
  • Applications using file.name directly in upload path construction

Discovery Timeline

  • 2026-04-08 - CVE-2026-39844 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2026-39844

Vulnerability Analysis

NiceGUI's upload handler sanitized incoming filenames using PurePosixPath from Python's pathlib module. PurePosixPath recognizes only the forward slash (/) as a path separator. On Windows, however, the operating system accepts both forward slashes and backslashes (\) as directory separators. A filename such as ..\..\Windows\Temp\evil.exe passes Posix-style sanitization unchanged because the library sees a single filename component, not a traversal sequence.

When the unmodified value reaches the Windows filesystem APIs, the backslashes are interpreted as directory separators and the path escapes the intended upload directory. Any application that builds an output path using file.name inherits the bypass.

Root Cause

The root cause is reliance on a platform-specific path parser to validate untrusted input destined for a different platform's filesystem. PurePosixPath is appropriate for Linux and macOS, but it does not model Windows separator semantics. The sanitization logic therefore fails open on Windows.

Attack Vector

Exploitation requires no authentication and no user interaction. An attacker submits a multipart upload request to a NiceGUI endpoint and sets the filename field to a Windows-style traversal string. The server stores the file at the attacker-chosen path, which may include startup folders, scheduled task directories, or web roots, leading to arbitrary file write and follow-on code execution.

python
 from collections.abc import AsyncIterator
 from dataclasses import dataclass
 from io import BytesIO
-from pathlib import Path, PurePosixPath
+from pathlib import Path
 
 import aiofiles
 import anyio
# Source: https://github.com/zauberzeug/nicegui/commit/d38a702e3af2da5b0708f689be8d71413fc77056
# The patch removes the PurePosixPath import and replaces the Posix-only
# sanitization with platform-aware handling in nicegui/elements/upload_files.py.

Detection Methods for CVE-2026-39844

Indicators of Compromise

  • Upload requests where the multipart filename field contains backslashes (\), ..\, or absolute Windows paths such as C:\.
  • Files appearing outside the configured NiceGUI upload directory on Windows hosts, especially in startup, scheduled task, or web-root locations.
  • New executable or script files (.exe, .bat, .ps1, .lnk) written by the Python process hosting NiceGUI.

Detection Strategies

  • Inspect web server and application logs for HTTP upload requests containing URL-encoded or raw backslashes in the filename parameter.
  • Correlate file creation events from the NiceGUI Python process with paths outside the documented upload directory.
  • Hunt for process-chain anomalies where python.exe running NiceGUI is followed by execution of a newly written binary or script.

Monitoring Recommendations

  • Enable filesystem auditing on Windows hosts for write operations performed by the NiceGUI service account.
  • Monitor child-process creation under the Python interpreter hosting NiceGUI to surface post-write execution.
  • Alert on writes to high-value paths such as %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup and C:\Windows\System32\Tasks originating from web application processes.

How to Mitigate CVE-2026-39844

Immediate Actions Required

  • Upgrade NiceGUI to version 3.10.0 or later on all Windows deployments.
  • Audit application code for any use of file.name in path construction and replace it with a hardened basename routine.
  • Review the upload directory and adjacent paths for unexpected files created since deployment.
  • Restrict the NiceGUI service account to the minimum filesystem permissions required.

Patch Information

The issue is fixed in NiceGUI 3.10.0. The fix removes the PurePosixPath-based sanitization in nicegui/elements/upload_files.py and applies platform-aware path handling. See the GitHub Security Advisory GHSA-w8wv-vfpc-hw2w, the upstream commit d38a702, and the NiceGUI 3.10.0 release notes.

Workarounds

  • If upgrading is not immediately possible, sanitize uploaded filenames using ntpath.basename() before any path construction on Windows.
  • Reject uploads whose filename contains \, /, :, or path traversal sequences before they reach application logic.
  • Write uploaded content to a randomly generated server-side filename rather than the client-supplied value.
bash
# Pin NiceGUI to the patched release
pip install --upgrade "nicegui>=3.10.0"

# Verify installed version
python -c "import nicegui, sys; sys.exit(0 if nicegui.__version__ >= '3.10.0' else 1)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Release v3.10.0
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-w8wv-vfpc-hw2w
  • Related CVEs
  • CVE-2026-3087: Python shutil Path Traversal Vulnerability

  • CVE-2025-24054: Windows 10 Path Traversal Vulnerability

  • CVE-2026-21249: Windows 10 1607 Path Traversal Flaw

  • CVE-2026-23889: Pnpm Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English