Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-25732

CVE-2026-25732: NiceGUI Path Traversal Vulnerability

CVE-2026-25732 is a path traversal vulnerability in NiceGUI's FileUpload component that allows attackers to write files outside intended directories using malicious filenames. This article covers technical details, versions, and fixes.

Published: February 13, 2026

CVE-2026-25732 Overview

A path traversal vulnerability has been identified in NiceGUI, a Python-based UI framework, affecting versions prior to 3.7.0. The vulnerability exists in NiceGUI's FileUpload.name property, which exposes client-supplied filename metadata without proper sanitization. When developers use the common pattern UPLOAD_DIR / file.name to construct file paths, malicious filenames containing ../ sequences can allow attackers to write files outside the intended upload directories.

Critical Impact

This vulnerability enables attackers to write arbitrary files to locations outside the designated upload directory, potentially leading to remote code execution through application file overwrites in vulnerable deployment patterns.

Affected Products

  • NiceGUI versions prior to 3.7.0
  • Applications using the FileUpload.name property in filesystem path construction without sanitization
  • Python web applications following common community upload patterns

Discovery Timeline

  • 2026-02-06 - CVE CVE-2026-25732 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25732

Vulnerability Analysis

This path traversal vulnerability (CWE-22) arises from a design flaw in the NiceGUI framework's file upload handling mechanism. The FileUpload.name property directly returns the client-supplied filename without any sanitization or validation. When developers concatenate this unsanitized filename with a base upload directory path, attackers can manipulate the filename to include directory traversal sequences.

The vulnerability has been characterized as a "security footgun" affecting applications that follow common community patterns for file upload handling. It's important to note that exploitation requires the application code to incorporate file.name into filesystem paths without implementing its own sanitization. Applications that use fixed paths, generate filenames server-side, or implement explicit sanitization measures are not affected by this vulnerability.

Root Cause

The root cause lies in the framework's decision to expose raw, client-controlled filename metadata through the FileUpload.name property without performing any sanitization. The vulnerable code can be found in the upload_files.py module and the related upload handling code. This design choice places the burden of input validation entirely on application developers, many of whom follow community examples that do not include proper filename sanitization.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can craft a malicious file upload request containing specially crafted filename metadata. By including directory traversal sequences such as ../ in the filename, the attacker can escape the intended upload directory and write files to arbitrary locations on the filesystem, limited only by the application's write permissions.

For example, a malicious filename like ../../../etc/cron.d/malicious_job or ../app/main.py could be used to overwrite critical system files or application code, potentially leading to remote code execution. The success of such attacks depends on the specific deployment pattern and file system permissions of the target application.

For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-25732

Indicators of Compromise

  • File upload requests containing ../ or encoded path traversal sequences in filenames
  • Unexpected files appearing outside designated upload directories
  • Modified application files or configuration files with recent timestamps correlating to upload events
  • Web server logs showing suspicious filenames in multipart form data

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in file upload requests
  • Monitor file system integrity for unexpected modifications in application directories
  • Review application logs for upload requests with filenames containing suspicious characters or sequences
  • Deploy runtime application self-protection (RASP) solutions to detect path manipulation attempts

Monitoring Recommendations

  • Configure file integrity monitoring (FIM) on critical application directories and configuration files
  • Set up alerting for file creation events outside designated upload directories
  • Monitor web server access logs for anomalous file upload patterns
  • Implement audit logging for all file upload operations with full filename capture

How to Mitigate CVE-2026-25732

Immediate Actions Required

  • Upgrade NiceGUI to version 3.7.0 or later immediately
  • Audit existing application code for usage of the FileUpload.name property in filesystem path construction
  • Implement server-side filename sanitization or use generated filenames until the upgrade is complete
  • Review recently uploaded files for evidence of exploitation attempts

Patch Information

The vulnerability has been addressed in NiceGUI version 3.7.0. Organizations should upgrade to this version or later to receive the security fix. The patch ensures proper sanitization of client-supplied filenames before they are exposed through the FileUpload.name property. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Replace direct usage of file.name with server-generated filenames using UUID or similar random identifiers
  • Implement explicit filename sanitization by stripping path separators and directory traversal sequences
  • Use os.path.basename() on any client-supplied filename before path construction
  • Validate that the final resolved path remains within the intended upload directory using os.path.realpath() comparison
bash
# Example: Upgrading NiceGUI to the patched version
pip install --upgrade nicegui>=3.7.0

# Verify installed version
pip show nicegui | grep Version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechNicegui

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.16%

  • 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 Code Snippet

  • GitHub Code Snippet

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39844: NiceGUI Path Traversal Vulnerability

  • CVE-2026-33332: Zauberzeug NiceGUI DoS Vulnerability

  • CVE-2026-27156: Zauberzeug Nicegui XSS Vulnerability

  • CVE-2026-25516: NiceGUI ui.markdown() XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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