Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend email with malicious SVG attachment to Webmin user
-
DeliveryVictim authenticates to Webmin and opens mailboxes module
-
ExploitVictim clicks SVG attachment link
-
Executiondetach.cgi serves SVG as image/svg+xml from Webmin origin
-
PersistBrowser executes embedded JavaScript in Webmin origin context
-
ImpactAttacker script harvests session token or issues privileged Webmin API calls
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must be an authenticated Webmin user with access to the mailboxes module, and the Webmin instance must have the mailboxes component enabled and accessible. The attacker must be able to deliver an email to that user's mailbox (no authentication to Webmin is required of the attacker - PR:N). The victim must then click to view the SVG attachment through the Webmin mailboxes interface (UI:R - one user interaction required). Exploitation is limited by: (1) the requirement that the victim actively open the attachment in Webmin rather than an external mail client; (2) the mailboxes module must be in use and enabled; (3) the attack targets a specific authenticated user rather than being broadly automatable. These conditions meaningfully constrain mass exploitation but do not protect against targeted spear-phishing of Webmin administrators. |
| Impact | The CVSS 6.1 Medium score reflects a network-accessible (AV:N), low-complexity (AC:L), unauthenticated (PR:N) attack that requires one click of user interaction (UI:R) and has changed scope (S:C) with partial confidentiality and integrity impact (C:L/I:L). The changed-scope signal is significant: because XSS fires on the Webmin origin, an attacker's injected script inherits full same-origin access to Webmin's administrative interface, enabling actions such as credential harvesting, session hijacking, or issuing Webmin API calls on behalf of the victim - impacts that the C:L/I:L base scores understate in a system-administration context. SSVC assessment (exploitation: none, automatable: no, technical impact: partial) and the absence of a CISA KEV listing indicate no confirmed active exploitation at time of analysis. The non-automatable SSVC flag aligns with UI:R - mass exploitation is impractical without recipient interaction. EPSS data was not provided; the combination of no KEV, no POC, and UI:R suggests low near-term mass exploitation probability, but the privileged nature of Webmin installations elevates the consequence for targeted attacks against administrators. No conflicting signals exist between CVSS and the description. |
| Exploit ScenarioDerived | An attacker crafts an SVG file containing embedded JavaScript (e.g., a script that exfiltrates the victim's Webmin session token or issues privileged API calls) and sends it as an email attachment to a Webmin user's mailbox. When the authenticated Webmin user opens the mailboxes module and clicks the attachment link, detach.cgi serves the SVG with image/svg+xml content type from the Webmin origin, causing the browser to execute the embedded script with full same-origin privileges against the Webmin interface. No public proof-of-concept code has been identified at time of analysis, but the attack primitive (SVG XSS via email attachment) is well-understood and low-sophistication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Stored cross-site scripting in Webmin's mailboxes component (detach.cgi) allows a remote unauthenticated attacker to execute arbitrary JavaScript in the browser session of an authenticated Webmin user by sending an email containing a crafted SVG attachment. Because detach.cgi served SVG files with the image/svg+xml content type instead of a safe type, browsers treated the SVG as an active document on the Webmin origin, enabling script execution with full same-origin access to the Webmin interface. No public exploit has been identified and CISA has not listed this in KEV, but the attack surface is straightforward given the ubiquity of email as a delivery channel and Webmin's privileged system-administration context.
RemediationAI
Upgrade Webmin to version 2.640 or later, which contains the confirmed vendor-released patch. The specific fix is in commit cf432879a14568c4bb44cd2f9e5a9bd0e168edc1 (https://github.com/webmin/webmin/commit/cf432879a14568c4bb44cd2f9e5a9bd0e168edc1), which changes detach.cgi to serve SVG attachments as text/plain, preventing browser script execution. If immediate upgrade is not possible, a compensating control is to disable the Webmin mailboxes module entirely, preventing access to the vulnerable detach.cgi endpoint - note this disables all in-browser email functionality. Alternatively, network-level access controls restricting which users can reach the Webmin interface reduce the blast radius by limiting who can be targeted, but do not eliminate the vulnerability. Restricting the Webmin interface to trusted IP ranges via firewall rules or Webmin's own IP access controls (Webmin > Webmin Configuration > IP Access Control) reduces exposure without service disruption.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Webmin is a web-based Unix/Linux system administration panel. The mailboxes module provides an email client interface, and detach.cgi is the CGI script responsible for serving email attachments to the browser. Prior to version 2.640, the script passed SVG attachments directly to the browser with their native content type (image/svg+xml or inferred from a .svg/.svgz filename). Modern browsers treat SVG as an active XML document capable of executing embedded <script> tags when served from a web origin - in this case, the Webmin administration origin. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): attacker-controlled data (the SVG file) was rendered as an executable document in a privileged origin context. The commit diff at cf432879a confirms the fix: the script now detects SVG by content-type regex (^image\/svg(\+xml)?), by the type query parameter, and by filename extension (.svg/.svgz), and downgrades the served content type to text/plain, preventing script execution. The same commit also added filename sanitization to strip path traversal characters (\, /, null bytes, CRLF) in detach.cgi and detachall.cgi.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
1DescriptionCVE.org
Webmin before 2.640 allows mailboxes/detach.cgi XSS via an SVG document attachment that is viewed in the mailboxes component, because image/svg+xml is used instead of a safe type (e.g., text/plain).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-32528
GHSA-2rpj-3356-c2rw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB