CVE-2026-134631: Webmin through 2.670 Stored XSS via LDAP Samba Attributes in edit_user.cgi
Webmin through 2.670 contains a stored cross-site scripting vulnerability in ldap-useradmin/edituser.cgi that allows attackers to inject markup through the LDAP sambaAcctFlags and sambaBadPasswordCount attributes, which are rendered without HTML encoding. Attackers with LDAP write access to these attributes can store malicious scripts that execute in a Webmin administrator's browser when the user entry is opened in the editor.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Webmin administrators who open affected LDAP user entries in ldap-useradmin/edit_user.cgi are exposed. An attacker must first be able to write the sambaAcctFlags or sambaBadPasswordCount attributes for an LDAP user entry.
Does exploitation require an administrator to take action?
Yes. The stored script executes when a Webmin administrator opens the affected user entry in the editor. The attacker does not need Webmin administrative access, but does need LDAP write access to the specified attributes.
How can I determine whether an LDAP entry may contain a payload?
Inspect LDAP user entries for unexpected markup or script-like content in sambaAcctFlags and sambaBadPasswordCount. These are the attributes identified as being rendered without HTML encoding.