Skip to content

CVE-2026-58485 mcp-searxng: DNS-resolved Private Hostname SSRF in `web_url_read`

HighCVSS 7.1 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

mcp-searxng is a Model Context Protocol server that gives AI assistants web search and URL-reading capabilities through SearXNG. Prior to 1.7.1, web_url_read receives its caller-controlled URL through src/index.ts and validates only the literal hostname in assertUrlAllowed() within src/url-reader.ts before undiciFetch() performs operating-system DNS resolution. A public-looking attacker-controlled hostname that resolves to a private, loopback, link-local, or cloud-metadata address therefore passes the lexical check and causes the MCP server to connect to the internal destination. In the default HTTP configuration, an unauthenticated network client can use this path to read internal services, expose credentials or service tokens, and enumerate reachable internal hosts; in STDIO deployments, prompt-influenced tool selection can provide the malicious URL. Direct private IP literals are blocked, and MCP_HTTP_ALLOW_PRIVATE_URLS remains an explicit opt-out. This issue is fixed in version 1.7.1.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm mcp-searxng(npm) < 1.7.1 1.7.1 Fixed
ihor-sokoliuk mcp-searxng = < 1.7.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ihor-sokoliuk mcp-searxng = < 1.7.1 No fix listed
npm mcp-searxng(npm) < 1.7.1 1.7.1

References