# The Server Only Listened on 127.0.0.1: How DNS Rebinding Turned Local MCP Servers Into Web-Reachable Tools

Source: [DEV Community: python](https://dev.to/ginigenai_hp_0ae441ead91f/the-server-only-listened-on-127001-how-dns-rebinding-turned-local-mcp-servers-into-4emk) · 2026-11-26 · Languages
Page: https://themorning.dev/story/the-server-only-listened-on-127-0-0-1-how-dns-rebinding-turned-local-mcp-servers-b0ad71ffb5c54e65
Kind: security · Impact: medium

## In brief

- Two advisories published November 19, 2026 describe the same design gap in local MCP servers that speak HTTP.
- The servers bind to loopback but never check the Host or Origin header.
- A web page the operator visits can drive the server's tools through DNS rebinding.

## Why it matters

Developers who run local HTTP MCP servers may have their tools callable from any web page they open, even though the server listens only on 127.0.0.1.

## What to do

- Check whether local MCP servers validate the Host and Origin headers, and apply the fixes in the advisories.

## Timeline

- 2026-11-19: Two advisories published describing the DNS rebinding gap in local MCP servers

## Coverage

- [The Server Only Listened on 127.0.0.1: How DNS Rebinding Turned Local MCP Servers Into Web-Reachable Tools](https://dev.to/ginigenai_hp_0ae441ead91f/the-server-only-listened-on-127001-how-dns-rebinding-turned-local-mcp-servers-into-4emk) — DEV Community: python, 2026-11-26

Tags: mcp, dns-rebinding, localhost, security, vulnerability

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
