/

CVE-2026-49243

Severity:

CRITICAL RISK

(9.6)

Cross-Site Scripting (CWE-79) in Webmin Admin Tool

CVE-2026-49243

Deferred

Vulnerability type

Category:

Cross-Site Scripting

CWE:

CWE-79

Impact:

Client-side code execution and unauthorized administrative actions

Severity:

CRITICAL RISK

(9.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical cross-site scripting vulnerability in Webmin allows attacker-controlled script content to run in a user's Webmin browser session when the user follows a malicious link to the server. Depending on the user's privileges and available administrative functions, this could enable unauthorized actions or execution of commands through the Webmin interface.

A critical cross-site scripting vulnerability in Webmin allows attacker-controlled script content to run in a user's Webmin browser session when the user follows a malicious link to the server. Depending on the user's privileges and available administrative functions, this could enable unauthorized actions or execution of commands through the Webmin interface.

Affected context

The issue affects Webmin deployments using versions before 2.650 when a Webmin user can be induced to click a malicious link targeting the server. Risk depends on the affected endpoint's handling of attacker-controlled input, the user's authenticated session, and the permissions available to that account.

The issue affects Webmin deployments using versions before 2.650 when a Webmin user can be induced to click a malicious link targeting the server. Risk depends on the affected endpoint's handling of attacker-controlled input, the user's authenticated session, and the permissions available to that account.

Exploit preconditions

  • Attack surface: Webmin's web interface and affected request-handling functionality
  • Required access: A victim must have access to Webmin and an active or usable authenticated session
  • User interaction: The victim must click or otherwise follow a malicious link directed at the Webmin server
  • Trigger point: The vulnerable Webmin page processes attacker-controlled content in the victim's browser
  • Why exploitation is possible: Insufficient output encoding or input handling allows injected script content to execute in the Webmin security context
  • Attack surface: Webmin's web interface and affected request-handling functionality
  • Required access: A victim must have access to Webmin and an active or usable authenticated session
  • User interaction: The victim must click or otherwise follow a malicious link directed at the Webmin server
  • Trigger point: The vulnerable Webmin page processes attacker-controlled content in the victim's browser
  • Why exploitation is possible: Insufficient output encoding or input handling allows injected script content to execute in the Webmin security context

Why this happens

The vulnerability is caused by improper neutralization of user-controlled input before it is rendered in a Webmin response. This behavior maps to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where untrusted data is interpreted as active browser content rather than safely encoded text.

The vulnerability is caused by improper neutralization of user-controlled input before it is rendered in a Webmin response. This behavior maps to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where untrusted data is interpreted as active browser content rather than safely encoded text.

Potential impact

  • An attacker may perform actions through the victim's authenticated Webmin session
  • Session information or sensitive page data could be exposed
  • Webmin configuration or system-management functions could be modified
  • Commands could be executed through administrative functionality available to the victim
  • Higher-privileged accounts could increase the scope of compromise
  • An attacker may perform actions through the victim's authenticated Webmin session
  • Session information or sensitive page data could be exposed
  • Webmin configuration or system-management functions could be modified
  • Commands could be executed through administrative functionality available to the victim
  • Higher-privileged accounts could increase the scope of compromise

General mitigation guidance

Mitigation generally focuses on consistently treating request data and rendered content as untrusted.

Common defensive patterns include:

  • Applying context-aware output encoding at every HTML, attribute, script, and URL rendering boundary
  • Validating input against narrowly defined expected formats
  • Avoiding direct insertion of untrusted data into executable browser contexts
  • Using secure framework templating defaults and restrictive content security policies where practical
  • Limiting Webmin account privileges and separating administrative roles
  • Reducing exposure of Webmin to untrusted networks and enforcing strong session protections

Mitigation generally focuses on consistently treating request data and rendered content as untrusted.

Common defensive patterns include:

  • Applying context-aware output encoding at every HTML, attribute, script, and URL rendering boundary
  • Validating input against narrowly defined expected formats
  • Avoiding direct insertion of untrusted data into executable browser contexts
  • Using secure framework templating defaults and restrictive content security policies where practical
  • Limiting Webmin account privileges and separating administrative roles
  • Reducing exposure of Webmin to untrusted networks and enforcing strong session protections

How teams detect issues like this

Organizations can look for cross-site scripting risks through:

  • Static analysis rules identifying unescaped request parameters in HTML responses
  • Code review checks for direct concatenation of user input into templates, scripts, attributes, or URLs
  • Dynamic testing that submits encoded and context-specific markup to affected Webmin routes
  • Web application firewall or content security policy reports showing unexpected script activity
  • Automated security review tools that flag missing output encoding and unsafe template usage

Organizations can look for cross-site scripting risks through:

  • Static analysis rules identifying unescaped request parameters in HTML responses
  • Code review checks for direct concatenation of user input into templates, scripts, attributes, or URLs
  • Dynamic testing that submits encoded and context-specific markup to affected Webmin routes
  • Web application firewall or content security policy reports showing unexpected script activity
  • Automated security review tools that flag missing output encoding and unsafe template usage

Sources

SourceLink
beaksec.github.iobeaksec.github.io/posts/webmin-one-click-rce-via-xss
github.comgithub.com/webmin/webmin/commit/2d016751399ed0f4159e72a6cbcd63694a84dabf
github.comgithub.com/webmin/webmin/releases/tag/2.650
github.comgithub.com/webmin/webmin/security/advisories/GHSA-hv4w-p8jq-2rp5

Frequently asked

questions

It can be triggered through a malicious link delivered to a Webmin user, provided the target server and affected functionality are reachable and the victim interacts with the link.

The attacker generally needs to craft or deliver a malicious link, while the victim needs access to Webmin and typically an authenticated session. The resulting impact depends on the victim's privileges.

Use context-aware output encoding and strict input validation throughout the web interface, while ensuring templates do not interpret untrusted data as executable content.

Combine secure-by-default templating, code review for data-flow and encoding boundaries, browser security policies, limited administrative privileges, and regular application security testing.

It can be triggered through a malicious link delivered to a Webmin user, provided the target server and affected functionality are reachable and the victim interacts with the link.

The attacker generally needs to craft or deliver a malicious link, while the victim needs access to Webmin and typically an authenticated session. The resulting impact depends on the victim's privileges.

Use context-aware output encoding and strict input validation throughout the web interface, while ensuring templates do not interpret untrusted data as executable content.

Combine secure-by-default templating, code review for data-flow and encoding boundaries, browser security policies, limited administrative privileges, and regular application security testing.

Find out what's already
exploitable in your codebase.