Cabecera Penligente

CVE-2026-141591: MCP Fetch SSRF Guard Bypass and Fixes

CVE-2026-141591 affects the private-network guard in mcp-fetch-server. A destination can retain a loopback or private identity while using a hostname spelling the older checks fail to recognize. For an agent with a fetch tool, the practical question is whether the running MCP server parses the destination, validates resolved addresses, and uses the corrected network path.

En maintainer advisory y CVE record identify a bypass involving hexadecimal IPv4-mapped IPv6 addresses and localhost variants. An attacker must influence a URL supplied to a fetch tool; this does not establish that every MCP server or every agent deployment is affected.

Which versions and configurations need attention?

CondiciónAssessment
mcp-fetch-server ≥1.1.0 and <1.2.0Affected range identified by the advisory
Version 1.2.0Historical correction for this issue
URL or DNS answer has a forbidden destination identityCorrected validation must reject it before the connection
Older server process still runningA package update alone does not establish remediation

En 1.2.0 release contains the guard correction. The advisory describes this as a bypass of protection introduced for CVE-2025-65513; stopping at 1.1.0 therefore does not close the newer issue. Inventory the actual package and launch source, including containers or MCP client configurations that select a pinned copy.

Why string checks miss the destination

En maintainer correction describes hexadecimal IPv4-mapped IPv6 literals and trailing-dot localhost as bypass cases. Its correction uses dedicated IPv4/IPv6 parsing, hostname normalization and explicit reserved-range blocking. The exported validateUrl y resolveAndValidateHost functions cover URL identity and resolved addresses; createSafeLookup supplies a validated lookup callback. The release also describes IP-pinned connections to close the gap between a DNS check and the address used by the socket.

Hexadecimal mapped addresses such as ::ffff:7f00:1 represent loopback destinations; a comparison looking only for a familiar dotted IPv4 spelling can miss that relationship. Likewise, LOCALHOST. needs case and trailing-dot normalization before localhost policy is applied.

Mapped IPv6 loopback, resolved DNS addresses and trailing-dot localhost require normalized classification before private-network policy is enforced.
Conceptual classifier expectations derived from the upstream patch; no network request was sent.

Use local fixtures without probing internal services

A useful regression record can be produced from an isolated checkout of the corrected classifier. Keep the fixture entirely local: supply hostname strings to the classification function and inspect its returned decision. No HTTP call, cloud-metadata request, or production target is needed.

  • Expect isReservedIP("::ffff:7f00:1") to return true for the mapped loopback identity.
  • Expect isLocalHostname, applied after normalizeHostname normalizes LOCALHOST., to return true.
  • Keep hostname and IP functions separate: isReservedIP accepts IP strings, while a public hostname still needs its DNS answers validated.
  • Record expected and observed results separately, together with the checked source revision.

These are expected properties derived from the upstream correction. Penligent has not executed this regression or reproduced an exploit for this article. A passing hostname fixture also does not establish DNS-rebinding resistance or certify the surrounding network boundary; those require their own evidence.

Close the running-process and policy gaps

A package-file change is insufficient when the MCP client keeps an older child process alive. Capture the effective package version, executable or container source, launch configuration, process restart, and relevant environment from the server actually handling fetch requests. Avoid treating a client or editor version as proof of the separately launched server version.

Inspect the corrected URL, DNS and connection path in the deployed artifact. A hostname-only fixture cannot prove which IP a socket reaches. Keep independent egress controls and any authorized deployment observations as separate evidence. Attribute the connection-time protection to the 1.2.0 release notes, which describe IP-pinned transport and validated redirects, rather than assuming a parser test establishes those properties.

Correction evidence connects the fixed package, restarted MCP child process, validated DNS and socket path, and separate boundary checks.
A local classification result and an independent network policy establish different properties.

Keep the closure record small: corrected artifact, restarted server, URL and DNS validation path, local classification evidence, and separately owned network controls. For an AI pentesting workflow, retain those records alongside authorized validation evidence rather than treating a tool response as proof that every destination is constrained.

The official Penligent 3.0 video below demonstrates a general product workflow. It does not demonstrate exploitation or remediation of CVE-2026-141591.

Method: AI-assisted synthesis of the maintainer advisory, release, patch, and CVE record, checked December 2, 2026. The configuration and evidence framework is editorial analysis; no customer deployment or live exploit was tested.

Comparte el post:
Entradas relacionadas
es_ESSpanish