Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Webmin with low-privileged account
-
DeliveryAccess System and Server Status email template editor
-
ExploitInject XSS payload into template description via save_tmpl.cgi
-
InstallPayload stored server-side
-
C2Privileged admin opens list_tmpls.cgi
-
ExecuteMalicious script executes in admin browser
-
ImpactSession hijacked or privileged action executed
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 attacker must hold a valid Webmin account with at least low-privileged access to the System and Server Status module's email template functionality, as confirmed by the CVSS 4.0 vector component PR:L. This is a non-trivial prerequisite - unauthenticated exploitation is not possible. A separate, higher-privileged user must subsequently navigate to the list_tmpls.cgi page to trigger payload execution, as confirmed by UI:P in the CVSS vector; exploitation cannot be forced unilaterally by the attacker after injection. The vulnerability is scoped specifically to the email template description field within the System and Server Status module - other Webmin modules are not stated to be affected. Deployments where low-privileged users are denied access to this module entirely, or where only a single administrator account exists, significantly reduce real-world exploitability beyond what the CVSS score implies. |
| Impact | The CVSS 4.0 base score of 5.1 (Medium) accurately captures meaningful real-world constraints. The vector AV:N/AC:L/AT:N/PR:L/UI:P indicates the attack is network-reachable with low complexity and no special attack requirements, but requires a low-privileged account (PR:L) and user interaction from a second party (UI:P). Modified scope impacts are limited - SC:L and SI:L indicate only limited confidentiality and integrity effects on the broader system. However, contextual risk in a system administration panel is meaningfully elevated beyond the raw score: the users most likely to trigger execution by viewing list_tmpls.cgi are administrators, whose sessions or actions carry far greater real-world impact than a standard user on a typical web application. No EPSS score was included in the available data, so exploitation probability cannot be quantified statistically. This CVE is not present in CISA KEV, confirming no publicly confirmed active exploitation at time of analysis. No public POC has been identified. The most significant real-world limiting factor is the PR:L requirement - an attacker must first obtain a valid Webmin account with module access - combined with the UI:P dependency on administrator action. |
| Exploit ScenarioDerived | An attacker with a low-privileged Webmin account navigates to the System and Server Status module and creates or edits an email template, inserting a JavaScript payload (such as a session cookie exfiltration script) into the description field, which is saved via save_tmpl.cgi. When a higher-privileged administrator later opens the template management page at list_tmpls.cgi, the payload silently executes in their browser, potentially allowing the attacker to steal the admin's session token and gain full administrative control of the Webmin interface and the underlying server. No public POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 21, 2026
Stored cross-site scripting in Webmin before 2.641 allows low-privileged authenticated attackers to inject arbitrary JavaScript via the email template description field in the System and Server Status module. The payload is persisted through save_tmpl.cgi and rendered without HTML encoding by list_tmpls.cgi, executing in the browser of any user who subsequently views the template list - a population likely to include privileged administrators. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV; a vendor-released patch (Webmin 2.641) is available.
RemediationAI
The primary fix is upgrading to Webmin 2.641, which resolves this stored XSS as documented in the vendor changelog at https://webmin.com/changelog/webmin-2.641-released/. The VulnCheck advisory at https://www.vulncheck.com/advisories/webmin-stored-xss-via-system-and-server-status provides supplementary context. If immediate upgrade is not feasible, restrict access to the System and Server Status module - specifically the save_tmpl.cgi and list_tmpls.cgi endpoints - to only fully trusted administrator-level accounts, eliminating the low-privileged attacker role required for injection; this reduces attack surface but introduces operational constraints if delegated access is needed. Additionally, enforcing a strict Content Security Policy (CSP) header on the Webmin interface to block inline script execution would limit the impact of any XSS payload, though compatibility with Webmin's existing JavaScript functionality should be validated before deployment to avoid breaking legitimate administrative features.
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 widely deployed web-based Unix/Linux system administration interface. The vulnerable code path resides in the System and Server Status module's email template management feature. CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS) describes the root cause: user-supplied input in the template description field is accepted and persisted by save_tmpl.cgi without sanitization, then retrieved and rendered directly into the HTML page by list_tmpls.cgi without HTML encoding. This stored (persistent) XSS pattern is more dangerous than reflected XSS because the payload executes on every subsequent page load for every viewer, without any further attacker interaction after the initial injection. The CPE string cpe:2.3:a:webmin:webmin:*:*:*:*:*:*:*:* covers all Webmin application versions, with the ENISA EUVD entry EUVD-2026-31350 bounding the affected range as Webmin 0 through below 2.641.
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:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Webmin before 2.641 contains a stored cross-site scripting vulnerability in the email template description field of the System and Server Status module that allows low-privileged authenticated attackers to execute arbitrary commands by injecting unsanitized input stored in save_tmpl.cgi and rendered unescaped in list_tmpls.cgi.
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.
An 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-31350
GHSA-vxwv-pg73-pf78
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB