Skip to main content

mcp-searxng EUVDEUVD-2026-78923

| CVE-2026-54688 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-08-19 https://github.com/ihor-sokoliuk/mcp-searxng GHSA-q87f-qc2r-2gw4
6.5
CVSS 3.1 · Vendor: https://github.com/ihor-sokoliuk/mcp-searxng
View

Attack ChainAIDerived

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

  1. Access
    Deliver prompt injection via indexed content
  2. Delivery
    LLM invokes web_url_read with attacker-controlled URL
  3. Exploit
    Server fetches internal or metadata endpoint (no IP filtering in default config)
  4. Execution
    Response returned as markdown into model context
  5. Impact
    Attacker extracts secrets or internal service data

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

The primary condition enabling exploitation is that MCP_HTTP_HARDEN is not set to true - this is the default out-of-the-box state, so all default deployments are vulnerable without any configuration change required. The attacker must be able to influence the URL argument passed to the web_url_read tool; in LLM agentic contexts this is achievable via prompt injection in content the LLM processes, making the attack surface broad. In non-agentic contexts, the attacker must be an authenticated MCP client with permission to call the web_url_read tool. The attack is limited to HTTP/HTTPS - file:// URLs are rejected unconditionally. Impact is limited to read-only access to internal HTTP services reachable from the server's network interface (including 127.0.0.1 and 169.254.169.254 on cloud hosts); no write or delete capability is implied. Environments running the server without cloud metadata services or internal HTTP APIs on loopback have reduced exposure but are not immune if other internal services are reachable.

Impact

The assigned CVSS 3.1 score of 6.5 with vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N reflects the core risk accurately but arguably underscores the real-world danger in two ways: UI:R implies user interaction, yet in LLM agentic pipelines the tool invocation can be triggered automatically via prompt injection with no meaningful human gate, and S:U does not capture that the server uses its privileged internal network position to access resources the attacker could not reach directly. The AC:L and PR:N ratings are correct - the default configuration requires no special setup or credentials to exploit. No EPSS data was provided and no CISA KEV listing was found at time of analysis, but a confirmed PoC exists and the vulnerability is trivially reproducible in default installations, meaning any team running mcp-searxng in a cloud environment - including smaller operators who may not have reviewed default security settings - should treat this as urgent given that the guard simply ships off and cloud metadata credential exfiltration is one HTTP request away.

Exploit ScenarioDerived

An attacker delivers a prompt injection payload into content indexed by SearXNG or fetched during a browsing session, causing the LLM agent to call web_url_read with a URL targeting http://169.254.169.254/latest/meta-data/iam/security-credentials/ (or a local internal API on 127.0.0.1). Because MCP_HTTP_HARDEN is off by default, the server fetches the target without any IP filtering, converts the response to markdown, and returns IAM temporary credentials or internal service data directly into the model context where the attacker can observe or exfiltrate them. A PoC confirming this exact flow on v1.1.0 is publicly documented in the GitHub advisory.

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 – Aug 19, 2026

Server-Side Request Forgery in mcp-searxng's web_url_read tool allows any caller - including an LLM steered via prompt injection - to make the server fetch internal HTTP services and cloud metadata endpoints (e.g., http://169.254.169.254/) and return their contents into the model context. The SSRF guard function assertUrlAllowed exists in the codebase but ships disabled because MCP_HTTP_HARDEN defaults to false, meaning all default deployments of versions prior to 1.2.1 are unprotected. Publicly available exploit code exists, validated on v1.1.0; no CISA KEV listing was present at time of analysis.

RemediationAI

Upgrade to mcp-searxng v1.2.1, which is the vendor-released patch per https://github.com/ihor-sokoliuk/mcp-searxng/releases/tag/v1.2.1 and the hotfix referenced in issue #91. If an immediate upgrade is not possible, set the environment variable MCP_HTTP_HARDEN=true before starting the MCP server - this activates the existing assertUrlAllowed guard and blocks loopback and private-range requests, though note that even with this flag enabled the guard uses literal hostname matching and does not re-validate on HTTP redirects, so DNS rebinding and redirect-based bypasses remain possible until the code is patched. As an additional compensating control in cloud environments, restrict the MCP server process's network egress at the infrastructure level (firewall, security groups, or host-based rules) to block outbound connections to 169.254.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 127.0.0.0/8; this is host-independent and not bypassable by application-layer redirect tricks, but does require infrastructure access to configure. The vendor's own remediation guidance recommends making assertUrlAllowed unconditional and adding per-redirect-hop IP re-validation.

Affected VersionsENISA

mcp-searxng < 1.2.0

Affected Packages

npm mcp-searxng fix: 1.2.0, 1.2.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

mcp-searxng (pkg:npm/mcp-searxng) is a Node.js Model Context Protocol server that wraps SearXNG, a self-hosted meta-search engine. The vulnerable component is the web_url_read tool implemented in dist/index.js (lines 90-101), which calls fetchAndConvertToMarkdown with a caller-supplied URL and no unconditional input validation. The guard function assertUrlAllowed in dist/url-reader.js (lines 44-52) would block private/loopback/RFC-1918 and link-local metadata addresses (169.254.0.0/16), but it is only invoked when the environment variable MCP_HTTP_HARDEN is set to true - and dist/http-security.js (line 11) defaults this flag to off. The root cause class is CWE-918 (Server-Side Request Forgery): user-controlled URLs are passed directly to a server-side HTTP client without unconditional sanitization. Secondary weaknesses include: the guard uses literal hostname matching with no DNS-rebinding protection, and the HTTP fetch follows redirects without re-validating the resolved destination. file:// URLs are rejected, constraining the attack surface to HTTP/HTTPS.

Know when the next one hits your stack

  • 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 (https://github.com/ihor-sokoliuk/mcp-searxng) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 8.6 HIGH

No user interaction required in agentic/prompt-injection scenarios; Scope:Changed because server leverages its privileged network position to reach resources beyond the attacker's direct access.

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

Primary rating from Vendor (https://github.com/ihor-sokoliuk/mcp-searxng).

CVSS VectorVendor: https://github.com/ihor-sokoliuk/mcp-searxng

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Ref: https://github.com/ihor-sokoliuk/mcp-searxng/issues/87#issuecomment-4645453694

Summary

The web_url_read tool fetches a caller-supplied URL server-side and converts it to markdown. An SSRF guard (assertUrlAllowed, which blocks private/loopback/metadata addresses) exists but runs only when MCP_HTTP_HARDEN=true, which is off by default. So in the default configuration there is no internal-address filtering, and an attacker who can influence the URL can make the server fetch internal services and cloud metadata and return their content. Confirmed on 1.1.0 (default config): web_url_read fetched a local internal sentinel and returned its content.

Details

dist/index.js (around lines 90-101): web_url_read calls fetchAndConvertToMarkdown on the caller URL. dist/url-reader.js (around lines 44-52): assertUrlAllowed performs the private-IP/loopback check, but only when the hardening flag is set; dist/http-security.js (around line 11) defaults MCP_HTTP_HARDEN to off. With the default config the check is skipped entirely. Even when enabled, the check is literal-hostname based with no DNS-rebinding or redirect re-check (the fetch follows redirects). file:// is rejected, so this is HTTP/HTTPS SSRF.

PoC

Re-validated on mcp-searxng 1.1.0 over MCP stdio in the default configuration (MCP_HTTP_HARDEN not set):

tools: searxng_web_search, web_url_read
web_url_read({ url: "http://127.0.0.1:<port>/internal" }) -> server fetched the internal sentinel; SSRF: CONFIRMED

The server fetched the loopback sentinel and returned its content. With MCP_HTTP_HARDEN=true the same request is blocked (policy error), confirming the guard exists but ships off. The same reaches http://169.254.169.254/... on cloud hosts.

Impact

In the default configuration an attacker who can influence the URL (LLM-produced and steerable via prompt injection) can make the server fetch internal-only HTTP services and the cloud metadata endpoint, returning their contents into the model context for exfiltration. The protection that would prevent it is not enabled by default.

Remediation

Enable the internal-address filtering by default (fail safe): make assertUrlAllowed run unconditionally and require an explicit opt-out only for trusted environments. Strengthen the check to resolve the host and reject loopback, link-local/metadata (169.254.0.0/16), 0.0.0.0/8, and private ranges, and re-validate on every redirect hop (or pin to the validated IP).

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche npm MCP wrapper for self-hosted SearXNG search
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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