CVE-2026-134627 in Webmin
Summary
by MITRE • 11/25/2026
Webmin through 2.670 contains a stored cross-site scripting vulnerability that allows local users or directory writers to inject script by placing markup in user names, group names or GECOS fields. Attackers can set GECOS via chfn or modify LDAP, NIS or SSSD entries so unescaped values in my_user_chooser.cgi, my_group_chooser.cgi, user_chooser.cgi and group_chooser.cgi execute in a Webmin user's browser.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
Webmin versions through 2.670 are affected by a critical stored cross-site scripting vulnerability that stems from insufficient input validation within the system administration interface. This flaw allows authenticated local users or individuals with write access to specific directories to inject malicious script code into user names, group names, and GECOS fields. The root cause lies in the failure of several CGI scripts, specifically my_user_chooser.cgi, my_group_chooser.cgi, user_chooser.cgi, and group_chooser.cgi, to properly escape or sanitize data retrieved from these sources before rendering it within HTML responses. Because Webmin is a widely used web-based system administration tool for Unix-like systems, this vulnerability poses a significant risk to the integrity of administrative workflows and the security posture of managed servers.
The operational impact of this vulnerability is severe due to its stored nature, meaning that once malicious content is injected into user or group attributes, it persists in the backend data store until manually removed. Attackers can exploit this by modifying LDAP, NIS, or SSSD entries via tools such as chfn, thereby embedding script payloads directly into identity management systems. When an administrator subsequently views these records through the Webmin interface, the browser executes the injected scripts within the context of the admin session. This enables attackers to perform actions on behalf of the victim, steal sensitive administrative cookies or tokens, capture keystrokes, or redirect users to malicious sites designed for credential harvesting. The persistence of this data makes it particularly dangerous as it can affect multiple administrators over time without further direct interaction from the attacker after the initial injection.
From a classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The attack vector leverages stored data to execute scripts in the victim's browser, fitting the ATT&CK technique T1053.006 for Scheduled/Job Task Execution if used for persistence or lateral movement, though primarily it falls under social engineering and client-side attacks like T1078 Valid Accounts when combined with credential theft. The ability to manipulate LDAP, NIS, and SSSD entries highlights the interconnected nature of modern identity infrastructure, where a flaw in one component can compromise others through shared data stores.
Mitigation strategies should focus on immediate patching and enhanced input validation. Administrators must upgrade Webmin to version 2.671 or later, which addresses these sanitization failures by ensuring that all user-supplied data is properly escaped before being rendered in HTML contexts. In the interim, restricting access to the Webmin interface via IP whitelisting can reduce exposure. Additionally, organizations should audit LDAP and NIS directories for any anomalous entries in GECOS fields or username attributes that may contain script tags or JavaScript event handlers. Implementing strict Content Security Policy headers within the Webmin configuration can also help mitigate the impact of successful injection attempts by restricting the sources from which scripts are allowed to execute, thereby adding a layer of defense-in-depth against client-side attacks.