Skip to main content

Webmin CVE-2026-22678

| EUVDEUVD-2026-31350 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-21 VulnCheck GHSA-vxwv-pg73-pf78
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to Webmin with low-privileged account
  2. Delivery
    Access System and Server Status email template editor
  3. Exploit
    Inject XSS payload into template description via save_tmpl.cgi
  4. Install
    Payload stored server-side
  5. C2
    Privileged admin opens list_tmpls.cgi
  6. Execute
    Malicious script executes in admin browser
  7. Impact
    Session 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.

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

Webmin 0 <2.641

Affected Packages

euvd webmin fix: 2.641

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 21, 2026 - 22:22 NVD
5.4 (MEDIUM) 5.1 (MEDIUM)

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

EPSS Score
0.0%
Top 90% exploitable
Data Quality
6 sources
Confidence: High

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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

More in Webmin

View all
CVE-2019-15107 CRITICAL POC
9.8 Aug 16

An issue was discovered in Webmin <=1.920. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2012-2982 MEDIUM POC
6.5 Sep 11

file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid

CVE-2012-2983 MEDIUM POC
5.0 Sep 11

file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited

CVE-2022-36446 CRITICAL POC
9.8 Jul 25

software/apt-lib.pl in Webmin before 1.997 lacks HTML escaping for a UI command. Rated critical severity (CVSS 9.8), thi

CVE-2022-0824 HIGH POC
8.8 Mar 02

Improper Access Control to Remote Code Execution in GitHub repository webmin/webmin prior to 1.990. Rated high severity

CVE-2019-12840 HIGH POC
8.8 Jun 15

In Webmin through 1.910, any user authorized to the "Package Updates" module can execute arbitrary commands with root pr

CVE-2017-15644 HIGH POC
8.6 Oct 19

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

CVE-2019-9624 HIGH POC
7.8 Mar 07

Webmin 1.900 allows remote attackers to execute arbitrary code by leveraging the "Java file manager" and "Upload and Dow

CVE-2015-2079 CRITICAL POC
9.9 Apr 28

Usermin 0.980 through 1.x before 1.660 allows uconfig_save.cgi sig_file_free remote code execution because it uses the t

CVE-2021-31761 CRITICAL POC
9.6 Apr 25

Webmin 1.973 is affected by reflected Cross Site Scripting (XSS) to achieve Remote Command Execution through Webmin's ru

CVE-2017-15645 HIGH POC
8.8 Oct 19

CSRF exists in Webmin 1.850. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authenticati

CVE-2022-35132 HIGH POC
8.8 Oct 25

Usermin through 1.850 allows a remote authenticated user to execute OS commands via command injection in a filename for

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