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-49102

CVE-2026-49102: Webmin XSS Vulnerability

CVE-2026-49102 is an XSS flaw in Webmin's mailboxes component that allows attacks via SVG document attachments. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: May 28, 2026

CVE-2026-49102 Overview

CVE-2026-49102 is a stored cross-site scripting (XSS) vulnerability in Webmin versions before 2.640. The flaw exists in the mailboxes/detach.cgi endpoint, which serves email attachments with the image/svg+xml MIME type instead of a safe content type such as text/plain. An attacker can embed JavaScript inside a Scalable Vector Graphics (SVG) document, deliver it as an email attachment, and trigger script execution when a Webmin user views the attachment through the mailboxes component. The vulnerability is tracked under CWE-79.

Critical Impact

Authenticated Webmin administrators viewing a malicious SVG attachment execute attacker-controlled JavaScript in the Webmin origin, enabling session theft and administrative action hijacking.

Affected Products

  • Webmin versions prior to 2.640
  • Webmin mailboxes module (detach.cgi)
  • Deployments handling untrusted email attachments through Webmin

Discovery Timeline

  • 2026-05-27 - CVE-2026-49102 published to the National Vulnerability Database (NVD)
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-49102

Vulnerability Analysis

Webmin is a web-based system administration interface for Unix-like servers. The mailboxes module allows administrators to read mailbox contents directly through the Webmin console, including viewing message attachments inline.

When a user opens an attachment, mailboxes/detach.cgi returns the file with the original MIME type, including image/svg+xml for SVG files. Browsers parse SVG as an XML document and execute embedded <script> elements or event handlers within the response origin. Because the attachment is served from the Webmin host, the script runs in the same origin as the authenticated Webmin session.

The attacker requires no privileges on the target system. User interaction is required because an administrator must open the attachment, which aligns with typical email triage workflows.

Root Cause

The root cause is unsafe content type selection in the attachment download handler. Instead of forcing a neutral MIME type such as text/plain or application/octet-stream for user-supplied attachments, detach.cgi honored the SVG MIME type. SVG documents support scripting, so trusting the attacker-controlled type allowed scripts to execute. The fix changes the served content type for SVG attachments to a non-executable type. See the upstream commit and the 2.630 to 2.640 diff.

Attack Vector

An attacker crafts an SVG file containing JavaScript inside a <script> element or an event handler such as onload. The attacker emails the SVG as an attachment to a mailbox managed through Webmin. When the administrator clicks the attachment in the mailboxes interface, detach.cgi serves the file as image/svg+xml, and the browser executes the embedded script in the Webmin origin. The script can read session cookies that are not HttpOnly, issue authenticated requests to Webmin endpoints, or pivot to other administrative actions.

Verified exploit code is not available in the referenced sources. Refer to the upstream commit linked above for the precise code-level change.

Detection Methods for CVE-2026-49102

Indicators of Compromise

  • Email attachments with .svg extensions or Content-Type: image/svg+xml headers delivered to mailboxes accessed through Webmin
  • HTTP responses from mailboxes/detach.cgi with the image/svg+xml content type
  • Outbound HTTP requests from administrator browsers to unexpected hosts shortly after viewing a mailbox attachment

Detection Strategies

  • Inspect web server and Webmin access logs for GET requests to /mailboxes/detach.cgi correlated with administrator sessions
  • Scan inbound mail flows for SVG attachments containing <script>, onload, onerror, or javascript: URIs
  • Compare the installed Webmin version against 2.640 on all managed hosts to identify unpatched systems

Monitoring Recommendations

  • Alert on browser sessions where Webmin administrative endpoints are invoked from unusual referrers immediately after attachment downloads
  • Forward Webmin and reverse-proxy logs to a centralized analytics platform for correlation with mail gateway telemetry
  • Track creation of new Webmin users, ACL changes, or scheduled commands following mailbox attachment access events

How to Mitigate CVE-2026-49102

Immediate Actions Required

  • Upgrade Webmin to version 2.640 or later on every host running the mailboxes module
  • Instruct administrators to avoid opening SVG attachments from untrusted senders until patching is complete
  • Review recent mailbox activity for SVG attachments delivered before the upgrade

Patch Information

Webmin 2.640 ships the fix that changes how SVG attachments are served by mailboxes/detach.cgi. The change is included in the GitHub commit cf432879 and the 2.630 to 2.640 release comparison. Apply the upstream release rather than backporting manually to ensure all related changes are included.

Workarounds

  • Disable the Webmin mailboxes module on hosts that do not require it
  • Place Webmin behind a reverse proxy that rewrites the Content-Type of /mailboxes/detach.cgi responses to text/plain or application/octet-stream
  • Enforce a strict Content-Security-Policy header on Webmin responses to block inline script execution in served documents
bash
# Example nginx override to neutralize SVG attachments served by Webmin
location /mailboxes/detach.cgi {
    proxy_pass https://webmin-backend:10000;
    proxy_hide_header Content-Type;
    add_header Content-Type "application/octet-stream" always;
    add_header Content-Disposition "attachment" always;
    add_header Content-Security-Policy "default-src 'none'; sandbox" always;
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWebmin

  • SeverityMEDIUM

  • CVSS Score6.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Changes

  • GitHub Version Comparison
  • Related CVEs
  • CVE-2026-49103: Webmin Path Traversal Vulnerability

  • CVE-2025-61541: Webmin Auth Bypass Vulnerability

  • CVE-2024-12828: Webmin CGI Command Injection RCE Flaw

  • CVE-2022-0829: Webmin Auth Bypass 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