Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTML attachment with obfuscated script
-
DeliveryEmail it to Webmin user
-
ExploitVictim opens attachment in detach.cgi
-
ExecutionSanitizer bypass renders script from Webmin origin
-
ImpactScript executes in authenticated Webmin session
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 | Requires a Webmin deployment where operators read mail through the mailboxes module and open attachments via the detach.cgi attachment viewer. The attacker needs no authentication and only the ability to send an HTML attachment (entity-obfuscated javascript: scheme, or encoded script tags within an iframe srcdoc) to a mailbox the victim views in Webmin. The decisive limiting factor is required user interaction (UI:P): an authenticated Webmin user must open the malicious attachment for the script to execute in their session - the flaw cannot be triggered server-side without that action. Affected: all versions through 2.670; installations not using Webmin's webmail/mailbox reading feature are not exposed. |
| Impact | This is a stored XSS (CWE-79) in Webmin's mailbox attachment viewer (mailboxes/detach.cgi) with a vendor-supplied CVSS 4.0 of 5.3 (Medium). The attack vector is network with low complexity and no attacker privileges (AV:N/AC:L/PR:N) - any unauthenticated party who can email the victim can plant the payload - but exploitation is gated by passive user interaction (UI:P): an authenticated Webmin operator must actually open the malicious HTML attachment in the viewer. Impacts are bounded to low confidentiality/integrity on both the vulnerable system and the subsequent (browser/session) system (VC:L/VI:L/SC:L/SI:L, VA:N/SA:N), consistent with script running inside the victim's Webmin session rather than direct server code execution. No KEV listing is present (not confirmed actively exploited) and no EPSS score was provided, so widespread opportunistic exploitation cannot be asserted; the vuln.today decision label is 'this_month,' indicating a prioritize-but-not-emergency posture. Net: a credible, patch-this-cycle Medium issue whose real-world risk is tempered by the requirement that a privileged user open attacker-supplied mail through Webmin's webmail feature - not a drop-everything critical, but materially more than a theoretical finding because the sanitizer bypass is attacker-triggerable without credentials. |
| Exploit ScenarioDerived | An unauthenticated attacker emails a Webmin user an HTML attachment containing entity-obfuscated 'javascript:' schemes or encoded script tags inside an iframe srcdoc that evade Webmin's HTML sanitizer. When the Webmin operator opens the attachment in the detach.cgi viewer, the markup renders from the Webmin origin and executes script in their authenticated session. A public PoC reference exists (VulnCheck advisory and a Zenodo DOI), but it is not verified as working exploit code; exploitation still depends on the victim opening the attachment (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Stored cross-site scripting in Webmin's mailbox attachment viewer (mailboxes/detach.cgi) in versions through 2.670 allows an unauthenticated mail sender to plant HTML that executes script inside a Webmin user's session when that user opens the attachment. Delivery requires only the ability to send an email with a crafted HTML/SVG attachment; exploitation requires the victim to open it in Webmin's mailboxes module (user interaction, UI:P), so the flaw cannot be triggered server-side. Impact is bounded to the victim's Webmin session (scope-changed, low confidentiality/integrity impact, vendor CVSS 4.0 score 5.3 Medium); no KEV entry or public exploit code was referenced in the available intelligence, and installations that do not read mail through Webmin's mailboxes module are not exposed.
RemediationAI
Apply the upstream fix commit https://github.com/webmin/webmin/commit/344104046116978770cd0edea11405590a14ee08 (referenced as the vendor patch) and upgrade Webmin to a release that incorporates it; the available data does not name a tagged release version containing the commit, so confirm against the Webmin release notes before assuming a given version is patched. If upgrading immediately is not possible, the commit's own mitigations can be applied locally to mailboxes/detach.cgi as compensating controls: emit X-Content-Type-Options: nosniff on attachment responses, serve unknown or text/* attachments (including XML, SVG, message/delivery-status and the caller-supplied 'type' override) as text/plain or as Content-Disposition attachment downloads with application/octet-stream, and add Content-Security-Policy: sandbox; script-src 'none'; object-src 'none'; frame-src 'none'; base-uri 'none'; form-action 'none' when a text/html preview must be returned; the trade-off is that HTML, SVG and XML attachments no longer preview inline and must be downloaded and opened outside the browser. Operational hardening that reduces exposure without patching: restrict which Webmin users may access the mailboxes module through Webmin ACLs, and treat untrusted inbound HTML/SVG attachments as unsafe to open in the viewer until the fix is applied - the trade-off is loss of convenient in-panel attachment preview for those users. Review the VulnCheck advisory (https://www.vulncheck.com/advisories/webmin-through-2.670-stored-xss-via-mailboxes-detach-cgi-attachment-viewer) and GitHub issue 2941 for vendor follow-up; priority per vuln.today decision signal is this_month, so schedule the upgrade in the current monthly patch cycle.
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 Perl/CGI-based web administration panel; the mailboxes module reads user mail over IMAP/POP3 and serves MIME attachment parts back to the browser through detach.cgi. The root cause is CWE-79: the attachment response path reflected attacker-controlled MIME content (and, with the 'type' parameter, an attacker-influenced Content-Type) back to the Webmin origin without adequate neutralization. The referenced sanitizer code in web-lib-funcs.pl (line 10547) does not catch entity-obfuscated javascript: schemes or encoded script tags placed inside an iframe srcdoc attribute, and SVG attachments were previously served inline from the Webmin origin where they can execute script. Because the script runs on the Webmin origin rather than a sandboxed origin, it inherits the victim's authenticated session context. The upstream commit 344104046116978770cd0edea11405590a14ee08 reworks the response handling rather than only the filter: it adds X-Content-Type-Options: nosniff, forces a Content-Disposition attachment for downloads using application/octet-stream, downgrades XML/SVG, message/delivery-status and other text/* types to inert text/plain, and serves text/html with a Content-Security-Policy of sandbox; script-src 'none' (plus object-src, frame-src, base-uri and form-action 'none'), while only a fixed allowlist of raster image types may be rendered inline. The same commit adds regression fixtures, including a browser-driven test harness that reproduces XML, type-override and UTF-16 HTML attacks.
Know when Webmin gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Unauthenticated attacker sends the payload (PR:N) but the victim must open the attachment (UI:R); script runs in the victim's Webmin session across a trust boundary (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Webmin through 2.670 contains a stored cross-site scripting vulnerability in mailboxes/detach.cgi that allows unauthenticated mail senders to bypass the HTML sanitizer. Attackers can send HTML attachments with entity-obfuscated javascript: schemes or encoded script tags in iframe srcdoc to execute script in the Webmin session of users opening them.
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.
Related Vulnerabilities in Webmin XSS Stored and Reflected Vulnerabilities
View all 9An issue was discovered in Webmin <=1.920. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid
file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited
software/apt-lib.pl in Webmin before 1.997 lacks HTML escaping for a UI command. Rated critical severity (CVSS 9.8), thi
Improper Access Control to Remote Code Execution in GitHub repository webmin/webmin prior to 1.990. Rated high severity
In Webmin through 1.910, any user authorized to the "Package Updates" module can execute arbitrary commands with root pr
SSRF exists in Webmin 1.850 via the PATH_INFO to tunnel/link.cgi, as demonstrated by a GET request for tunnel/link.cgi/h
Webmin 1.900 allows remote attackers to execute arbitrary code by leveraging the "Java file manager" and "Upload and Dow
Usermin 0.980 through 1.x before 1.660 allows uconfig_save.cgi sig_file_free remote code execution because it uses the t
Webmin 1.973 is affected by reflected Cross Site Scripting (XSS) to achieve Remote Command Execution through Webmin's ru
CSRF exists in Webmin 1.850. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authenticati
Usermin through 1.850 allows a remote authenticated user to execute OS commands via command injection in a filename for
EUVD-2026-134932
GHSA-v36m-7x67-pmrq
NVD
CVE.org
EPSS
Exploit-DB