Skip to main content

Wazuh-MCP-Server EUVDEUVD-2026-137491

| CVE-2026-138029 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-27 VulnCheck GHSA-x3qr-4c9c-9j64
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply URL with hostname resolving to internal IP
  2. Exploit
    Bypass literal-IP-only validator (DNS not resolved)
  3. Execution
    Server curl connects to loopback/RFC1918/metadata endpoint
  4. Impact
    Leak HTTP status, headers, and up to 1,500 chars of response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the blueteam_check_webshell tool be invoked (via an MCP client such as Claude Desktop) with a URL the attacker can influence - matching the CVSS UI:P / operator-in-the-loop requirement - where the URL uses a DNS hostname rather than a literal IP, since literal loopback/private/reserved IPs are already rejected. The supplied hostname must resolve (or, via curl's -L, redirect) to a loopback, RFC1918, or link-local address such as 169.254.169.254; third-party wildcard services like 127.0.0.1.nip.io and localtest.me satisfy this without the attacker registering a domain. Affected: all versions before commit 2bbfe12 (pip package, vulnerable '*'). Limiting factors: value depends on the server's network reach to internal services, the cloud-metadata path applies only when the host runs on a cloud instance, and meaningful content exfiltration is bounded to responses matching the tool's webshell/login-page signature regexes (max ~1,500 characters); impact is reconnaissance and limited read-only disclosure, not write/RCE.

Impact

This is a genuine but moderate-priority finding, best characterized as a real-but-contained SSRF rather than a drop-everything emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/SC:L, score 5.3 Medium) aligns well with the mechanism in the GHSA advisory: network-reachable, low-complexity, but requiring passive user interaction (an operator or MCP client must invoke blueteam_check_webshell with an attacker-influenced URL) and yielding only limited confidentiality impact (response fingerprinting plus up to 1,500 characters of matched HTML), with no integrity or availability impact. Signals that would normally raise urgency are absent or neutral: no CISA KEV listing (so no confirmed active exploitation), and no EPSS score was supplied, so widespread-exploitation probability cannot be gauged from the input. A detailed, reproducible PoC validator exists in the GHSA advisory demonstrating the validation bypass, but it proves the input-filter weakness rather than a packaged end-to-end weaponized exploit. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence posture. The main caveat to flag explicitly: the real blast radius is deployment-dependent - the cloud-metadata (169.254.169.254) scenario only applies if the server runs on an AWS/GCP/Azure instance, and the attacker-influence path is strongest when URLs are auto-sourced from blueteam_wazuh_export forensic data rather than hand-typed by an analyst.

Exploit ScenarioDerived

An attacker who can influence a URL that an operator feeds to blueteam_check_webshell (for example, a hostname embedded in forensic data recovered by blueteam_wazuh_export, or an attacker-registered domain) supplies a DNS name such as http://127.0.0.1.nip.io:<port>/ that resolves to a loopback, RFC1918, or link-local address. Because the validator only rejects literal IP addresses and never resolves hostnames, the server's curl connects to the internal target and returns HTTP status, content-type, size, and up to 1,500 characters of matched HTML, enabling internal service discovery and reading of cloud instance-metadata or internal-only web endpoints. A working PoC for the validator bypass is published in the GHSA advisory, though it is not verified as a full end-to-end exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Server-side request forgery in the Wazuh-MCP-Server's blueteam_check_webshell tool lets a caller-supplied URL reach loopback, RFC1918, link-local and cloud-metadata addresses because the input validator only rejects literal IP hosts and never resolves DNS names. Any deployment of the pip package before commit 2bbfe12 is affected; exploitation requires the tool to be invoked through an MCP client with an attacker-influenced URL (CVSS UI:P), and third-party wildcard names such as 127.0.0.1.nip.io or localtest.me bypass the check without registering a domain. Impact is bounded: internal service fingerprinting via HTTP status, content-type and size, plus up to roughly 1,500 characters of HTML disclosed when a response matches the tool's webshell/login-page signature patterns. A public PoC reference exists in the advisory; it is not verified as working exploit code, and there is no confirmed active exploitation (no CISA KEV) with a moderate EPSS profile implicitly reflected in the 'this_month' priority label.

RemediationAI

Upgrade to a Wazuh-MCP-Server build that includes upstream commit 2bbfe12bf90ffd0a0c1299b5ed080740b09f4de4 (no tagged release version is listed in the available data, so pin the commit or a later one), as described in GHSA-pw2j-pj4h-f5vg. That fix resolves hostnames to their A/AAAA records and rejects any resolution to a non-global address, hardens the private/reserved test to cover CGNAT, multicast, unspecified and IPv4-mapped IPv6, and introduces an ALLOWED_INTERNAL_DOMAINS environment variable - a comma-separated allowlist of internal domains the webshell checker may reach on non-public IPs, empty by default so all non-public hosts are rejected. Set that allowlist only to domains genuinely required for webshell checking and keep it minimal, since every entry reintroduces reachability to internal addresses. Until the upgrade is applied, the practical compensating controls are to avoid invoking blueteam_check_webshell with URLs taken from untrusted or forensic data unless a human has reviewed the resolved destination, and to restrict the MCP server host's outbound reach to internal services and the 169.254.169.254 metadata endpoint (for example via network policy or egress filtering); the trade-off is that both require operator discipline and network-level controls rather than being enforced in the tool, and a reviewer must re-check DNS answers manually because the pre-fix validator performs no resolution and follows curl -L redirects without re-validation.

Affected VersionsENISA

Wazuh-MCP-Server a585b2d537d5d9137aede09ca8540d5dfc7cecdf <2bbfe12bf90ffd0a0c1299b5ed080740b09f4de4

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Wazuh-MCP-Server is a 132-tool Model Context Protocol server that gives an MCP host such as Claude Desktop read/write access to a live Wazuh SIEM deployment plus forensic helper tools. The flaw is CWE-918 (SSRF) rooted in a Pydantic v2 field_validator, WebshellCheckInput.validate_url in mcp_server/tools/webshell_check.py: it parses the URL host and calls ipaddress.ip_address(host), which raises ValueError for any non-literal-IP string, and the except branch explicitly treats that as 'not an IP - domain name, allowed' with no DNS resolution and no re-check. The tool's docstring nevertheless advertises 'SSRF Protection: Private/reserved IPs in the URL host are rejected', a claim that holds only for bare IPv4/IPv6 literals. The validated URL is passed as an argv element to curl (not shell-interpolated, so this is not command injection) with -s --insecure --max-time and optionally -L, so curl performs its own resolution at request time and follows redirects with zero re-validation, creating both a hostname bypass and a redirect/TOCTOU gap. Response handling parses HTTP status, content type and size, and returns up to 1,500 characters of title/heading/form-field HTML when a webshell or login-page regex matches, which is why exfiltration is limited rather than general-purpose. The upstream fix (commit 2bbfe12) adds an SSRFConfig with an ALLOWED_INTERNAL_DOMAINS allowlist, a _resolve_host_ips helper that resolves A/AAAA records via socket.getaddrinfo, and hardens the private-range test to gate on not is_global so CGNAT 100.64.0.0/10, multicast, unspecified and IPv4-mapped IPv6 forms are caught.

Know when Wazuh Mcp Server gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
vuln.today AI 4.7 MEDIUM

Network-reachable low-complexity SSRF; UI:R because an operator/MCP client must invoke the tool, S:C as curl reaches internal systems, C:L for limited response disclosure, no integrity/availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Wazuh-MCP-Server before commit 2bbfe12 contains a server-side request forgery vulnerability in the blueteam_check_webshell tool because WebshellCheckInput.validate_url 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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 75% exploitable
Prevalence
Rare
niche third-party open-source MCP server for Wazuh, tiny deployment footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy