# CVE-2026-22678: Webmin stored XSS in System and Server Status module

Source: https://junglewise.ai/threats/cve-2026-22678-webmin-stored-xss-in-system-and-server-status-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-21. Updated: 2026-05-21  
License: CC BY 4.0 with a link back

CVE-2026-22678 · Severity: medium · CVSS 5.4 · Published 2026-05-21

Webmin, a popular web-based interface for system administration, contains a security flaw in its System and Server Status module. An attacker with low-level access to the system can inject malicious scripts into email template descriptions. If an administrator views these templates, the attacker could potentially take control of the administrator's session or execute unauthorized commands, compromising the server's security.

Technologies: [Webmin](https://junglewise.ai/threats/technologies/webmin). Vendors: [Webmin](https://junglewise.ai/threats/vendors/webmin).

## Quick answers

**Is CVE-2026-22678 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-22678 being exploited in the wild.

**How severe is CVE-2026-22678?** Medium severity, with a CVSS score of 5.4, published 21 May 2026.

**Which products and versions are affected?** Webmin before 2.641.

**Is there a fix for CVE-2026-22678?** A patch was published on 2026-05-10: Webmin 2.641 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-22678 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-22678?** Check whether you run Webmin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A stored cross-site scripting (XSS) vulnerability exists in Webmin versions prior to 2.641. The flaw is located in the email template description field within the System and Server Status module. Specifically, input provided to 'save_tmpl.cgi' is not properly sanitized before being stored, and it is subsequently rendered without escaping in 'list_tmpls.cgi'. A low-privileged authenticated attacker can exploit this by injecting malicious JavaScript. When a victim (typically an administrator) views the list of templates, the script executes in their browser context, potentially allowing for session hijacking or arbitrary command execution. The issue is resolved in Webmin version 2.641.

## Affected products

- Webmin Webmin before 2.641

## Timeline

- 2026-05-10: patched: Webmin 2.641 released
- 2026-05-21: disclosed: CVE-2026-22678 published

## References

- [https://webmin.com/changelog/webmin-2.641-released/](https://webmin.com/changelog/webmin-2.641-released/)
- [https://www.vulncheck.com/advisories/webmin-stored-xss-via-system-and-server-status](https://www.vulncheck.com/advisories/webmin-stored-xss-via-system-and-server-status)

## Related threats

- [Webmin users file injection in cert_issue.cgi](https://junglewise.ai/threats/cve-2026-126781-webmin-through-2-670-contains-a-users-file-injection)
- [Webmin privilege escalation in ACL group module assignment](https://junglewise.ai/threats/cve-2026-126780-webmin-through-2-670-contains-a-privilege-escalation)
- [Webmin stored cross-site scripting in bind8 DNS records](https://junglewise.ai/threats/cve-2026-125392-webmin-through-2-670-contains-a-stored-cross-site-scripting)
- [Webmin OS command injection in samba/save_euser.cgi](https://junglewise.ai/threats/cve-2026-125391-webmin-through-2-670-contains-an-os-command-injection)
- [Webmin stored cross-site scripting in Shorewall modules](https://junglewise.ai/threats/cve-2026-124552-webmin-through-2-670-contains-a-stored-cross-site-scripting)
