CVE-2026-134631 in Webmininfo

Summary

by MITRE • 11/25/2026

Webmin through 2.670 contains a stored cross-site scripting vulnerability in ldap-useradmin/edit_user.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.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Webmin versions up through 2.670 represents a significant security risk rooted in improper input validation and output encoding within the ldap-useradmin module. Specifically, this flaw manifests as a stored cross-site scripting (XSS) attack vector located in the edit_user.cgi interface component. The core technical deficiency lies in the application's failure to perform HTML entity encoding on data retrieved from LDAP attributes before rendering them in the web-based administrative console. This lack of sanitization allows malicious actors who possess write access to specific Lightweight Directory Access Protocol fields, namely sambaAcctFlags and sambaBadPasswordCount, to inject executable JavaScript code directly into the user profile records stored within the directory service.

From a technical perspective, when an administrator accesses the Webmin interface to view or edit a user account associated with these compromised LDAP attributes, the browser retrieves the raw data containing the injected script payload. Because the web server does not encode special characters such as angle brackets and quotation marks into their corresponding HTML entities, the browser interprets the malicious content as executable code rather than plain text. This execution occurs within the context of the administrator's active session, granting the attacker the ability to run arbitrary scripts with the same privileges and permissions as the logged-in user. The persistence of this payload in the LDAP directory means that every time an authorized administrator views the affected user entry, the malicious script is triggered without requiring further interaction from the victim beyond opening the record for editing or viewing.

The operational impact of this vulnerability extends far beyond simple defacement or cookie theft, although those are common initial consequences. By leveraging stored XSS in a privileged administrative interface like Webmin, an attacker can potentially hijack session tokens to impersonate administrators, manipulate configuration settings, exfiltrate sensitive directory data, or even use the administrator's browser as a pivot point for further network attacks against internal systems. The severity is amplified by the fact that it requires only LDAP write access rather than full system compromise, making it accessible to lower-privileged attackers who have been granted specific permissions to modify user attributes in Active Directory environments integrated with Webmin. This aligns with CWE-79, which classifies improper neutralization of input during web page generation as a classic injection flaw leading to cross-site scripting vulnerabilities.

Mitigation strategies must address both the immediate technical gap and broader access control practices. The primary remediation involves upgrading Webmin to version 2.680 or later where this specific encoding issue has been resolved by implementing strict output escaping for all LDAP attribute values rendered in the UI. In environments where an upgrade is not immediately feasible, administrators should restrict write permissions on sambaAcctFlags and sambaBadPasswordCount attributes to only those users who absolutely require such access, thereby reducing the attack surface. Additionally, deploying a Web Application Firewall with rules capable of detecting and blocking XSS payloads in HTTP requests can provide a layer of defense-in-depth by intercepting malicious input before it is persisted in the LDAP directory. Regular auditing of LDAP attribute permissions ensures that least privilege principles are maintained, minimizing the risk of unauthorized script injection. This vulnerability also maps to MITRE ATT&CK technique T1059.007, which covers JavaScript execution as a method for achieving code execution and lateral movement within compromised environments.

Responsible

VulnCheck

Reservation

11/21/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00404

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!