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

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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.