Skip to main content

Webmin EUVDEUVD-2026-32528

| CVE-2026-49102 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-27 cve@mitre.org GHSA-2rpj-3356-c2rw
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send email with malicious SVG attachment to Webmin user
  2. Delivery
    Victim authenticates to Webmin and opens mailboxes module
  3. Exploit
    Victim clicks SVG attachment link
  4. Execution
    detach.cgi serves SVG as image/svg+xml from Webmin origin
  5. Persist
    Browser executes embedded JavaScript in Webmin origin context
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Webmin 0 <2.640

Affected Packages

euvd webmin fix: 2.640

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

NVD PRIMARY 6.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
May 27, 2026 - 19:46 EUVD

DescriptionCVE.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

EPSS Score
0.0%
Top 91% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy