CVE-2026-138029: Wazuh-MCP-Server before commit 2bbfe12 SSRF via blueteam_check_webshell Hostname Bypass
Wazuh-MCP-Server before commit 2bbfe12 contains a server-side request forgery vulnerability in the blueteamcheckwebshell tool because WebshellCheckInput.validateurl accepts DNS hostnames without resolving them. Attackers can supply URLs whose hostnames resolve or redirect to loopback, private, or link-local addresses, making curl reach internal services and cloud metadata endpoints and leak response details.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 2bbfe12
Event History
Frequently Asked Questions
Which deployments are exposed?
Wazuh-MCP-Server deployments using code from before commit 2bbfe12 are affected. The vulnerable behavior is in the blueteam_check_webshell tool's URL validation.
What does an attacker need to exploit this issue?
An attacker needs to supply a URL to the blueteam_check_webshell tool. A DNS hostname that resolves to, or redirects to, a loopback, private, or link-local address can cause curl to request internal services or cloud metadata endpoints.
What should be done if the deployment cannot be updated immediately?
Prevent untrusted users from supplying URLs to the blueteam_check_webshell tool, and restrict its ability to reach loopback, private, link-local, and cloud metadata addresses. Updating to code that includes commit 2bbfe12 addresses the affected validation behavior.
How can I determine whether my instance is affected?
Check whether the deployed Wazuh-MCP-Server code predates commit 2bbfe12. In affected code, WebshellCheckInput.validate_url accepts DNS hostnames without resolving them before curl makes the request.