TL;DR

  • Two advisories published on November 19, 2026 describe the same design gap in local MCP servers that speak HTTP: the server binds to loopback, but never checks the Host or Origin header, so a web page the operator visits can drive its tools.
  • CVE-2026-76807 (GHSA-833v-v58w-294h) covers the Todoist MCP server's optional HTTP mode, versions up to 10.3.2, fixed in 10.3.3, CVSS 3.1 score 9.3 (Critical). CVE-2026-77283 (GHSA-mx6p-3fg7-v6pj) covers obsidian-sync-mcp, versions up to 0.5.6 in no-auth mode, fixed in 0.5.7, rated High.
  • The root cause is a trust assumption: "bound to 127.0.0.1" was treated as "only local programs can reach it". A browser is a local program that runs attacker JavaScript.
  • I wrote a small Python model (illustrative, not a PoC). With no guard, 20 of 20 rebinding requests were accepted. A Host check blocks rebinding but still accepts 20 of 20 direct cross-origin requests. Host plus Origin blocks both browser shapes. Only a bearer token also stops 10 of 10 forged-header requests from non-browser clients.
  • The sources I read do not report exploitation in the wild.

DNS rebinding requests accepted by guard

What do the two advisories actually say?

Both advisories describe MCP servers that expose an HTTP endpoint (POST /mcp) for local use. The Todoist advisory is explicit that its stdio entrypoint is not browser-reachable, so the problem lives only in the HTTP transport.

The Todoist advisory says the self-hosted todoist-mcp-http server accepts browser-origin MCP requests with attacker-controlled Host and Origin headers. The documented mode runs every tool with the operator's TODOIST_API_KEY, and the server binds to 127.0.0.1 by default. The route handler passes POST /mcp to a StreamableHTTPServerTransport without validating either header. The authentication middleware checks that the server's own Todoist token is valid and then forwards the request, so it does not authenticate the browser caller. The registered tools include task creation, completion, update and deletion, plus comments, reminders, labels, filters, goals and assignments. The advisory lists CWE-346 (Origin Validation Error) and CWE-350.

The Obsidian advisory is the same shape with a different payload. When obsidian-sync-mcp runs without MCP_AUTH_TOKEN, which is the documented no-auth mode for local use, the endpoint does not validate Host or Origin before dispatching MCP methods. The reachable tools include read_note, write_note, edit_note, delete_note, move_note and the listing tools. The advisory notes that the README quickstart and the self-hosted compose setup, where the token defaults to empty, are both exposed to any website the operator visits while the server runs. Deployments that set a token are not affected, because a browser does not attach a bearer token to a forged request and gets HTTP 401.

Neither fix is exotic. Todoist shipped 10.3.3. Obsidian-sync shipped 0.5.7, which rejects requests whose Host is not localhost, 127.0.0.1 or ::1 (or a value in a new MCP_ALLOWED_HOSTS list), and rejects cross-origin Origin values not on the allowlist, before any MCP method runs.

Why does "bound to 127.0.0.1" not mean "only local programs"?

Binding to loopback limits which network interfaces accept connections. It says nothing about which code on your machine opens the connection. Your browser is on your machine. Any page it renders can run JavaScript, and JavaScript can issue fetch() calls.

There are two browser-delivered routes to a loopback service, and the Obsidian advisory describes both.

  1. DNS rebinding. The attacker serves a page from evil.example. Their DNS server first answers with the attacker's own IP, then, with a very short TTL, answers 127.0.0.1. The browser still believes the origin is evil.example, so same-origin policy lets the page read responses, but the TCP connection now lands on your local server. The tell is the Host header: it says evil.example, not localhost.
  2. Direct cross-origin fetch. The page calls fetch("http://127.0.0.1:8787/mcp") directly. Here Host is genuinely 127.0.0.1, so a Host check passes. What gives it away is the Origin header, which is the attacker's site. The advisory points out that the transport's wildcard Access-Control-Allow-Origin: * would let the page read the response in this case, so no rebinding is needed.

The first route is why a Host check exists. The second is why a Host check alone is incomplete. The fix in obsidian-sync-mcp includes both for that reason.

Why does this matter for agent builders specifically?

An MCP server is a tool surface for an agent, and tools carry authority. The Todoist server holds an API key and uses it for every call. The Obsidian server holds read and write access to a whole vault. If a web page can speak MCP to them, the page has the agent's hands without needing the agent at all.

That changes the threat model in a way that is easy to miss. Most agent-safety discussion asks whether the model can be tricked into a bad tool call, which is a gate on the model's output. This class of bug skips the model entirely. The attacker does not need prompt injection, a malicious repository or a poisoned document. They need the operator to open a web page while a local server is running, and the server to trust the caller because the caller arrived over loopback.

For a gate-focused view, the lesson is that an approval gate in front of the model does not protect a tool endpoint that can be called directly. If a human approves tool calls in the agent UI, but the same tools are reachable over an unauthenticated HTTP port, the approval is decorative. Authority has to be enforced at the tool endpoint, not only where the model is.

Direct cross-origin requests accepted by guard

How do I model the guards in Python?

The model below is deliberately small. It encodes four request shapes and four guards. It is illustrative: it does not speak HTTP and it is not a proof of concept for either product. It only shows which header checks block which shapes.

"""Illustrative model: which local MCP HTTP guards stop which request shapes.""" LOCAL = {"localhost", "127.0.0.1", "::1"} def host_ok(r): return r["host"].split(":")[0] in LOCAL def origin_ok(r): return r["origin"] is None or r["origin"] in {"http://localhost", "http://127.0.0.1"} def token_ok(r): return r["token"] == "secret" GUARDS = { "none (no-auth default)": lambda r: True, "Host check only": host_ok, "Host + Origin check": lambda r: host_ok(r) and origin_ok(r), "Bearer token": token_ok, } def req(kind, n): base = { "legit_cli": dict(host="127.0.0.1:8787", origin=None, token="secret"), "rebinding": dict(host="evil.example:8787", origin="http://evil.example:8787", token=None), "cross_origin": dict(host="127.0.0.1:8787", origin="https://evil.example", token=None), "lan_forged": dict(host="localhost", origin=None, token=None), }[kind] return [dict(base, kind=kind) for _ in range(n)] TRAFFIC = req("legit_cli", 50) + req("rebinding", 20) + req("cross_origin", 20) + req("lan_forged", 10) for name, g in GUARDS.items(): out = {} for r in TRAFFIC: out.setdefault(r["kind"], 0) out[r["kind"]] += bool(g(r)) print(f"{name:26s}", out) 

Running it prints the accepted counts per request shape. The traffic is 50 legitimate CLI calls (bearer token present, no Origin), 20 rebinding requests, 20 direct cross-origin requests and 10 forged-header requests from a non-browser client.

Guard Legit CLI (of 50) Rebinding (of 20) Cross-origin (of 20) Forged non-browser (of 10)
None (no-auth default) 50 20 20 10
Host check only 50 0 20 10
Host + Origin check 50 0 0 10
Bearer token 50 0 0 0

Three readings follow from the table.

  • Legitimate use is untouched under every guard. Non-browser MCP clients send no Origin, so the Origin check costs them nothing, which matches the advisory's note on the fix.
  • Each added check closes a shape the previous one left open. Host closes rebinding, Origin closes direct cross-origin, and only a credential closes the forged-header case.
  • The last column matters on shared networks. The Obsidian advisory says the Host and Origin checks block browser-delivered attacks only. A direct network client can forge both headers, so on untrusted networks a token is the control that holds.

Forged-header requests accepted by guard

What should I change in my own local MCP servers?

A checklist you can apply today, in the order I would do it:

  1. Prefer stdio when the client and server run on the same machine. A stdio server has no port for a web page to reach. The Todoist advisory says stdio was not the affected path.
  2. If you need HTTP, require a bearer token even on loopback. A browser will not attach it to an attacker's forged request, so the request fails with 401. This is the workaround the Obsidian advisory gives for any version.
  3. Validate Host against an allowlist (localhost, 127.0.0.1, ::1, plus anything you configure). This is what stops DNS rebinding.
  4. Validate Origin when present. Reject values that are not on your allowlist. Requests without an Origin from CLI clients should still pass.
  5. Do not send Access-Control-Allow-Origin: * from a tool endpoint. If a browser client is genuinely needed, name its origin.
  6. Do not default the token to empty in compose files and quickstarts. The advisory flags exactly this as the exposure path.
  7. Scope what the server's credential can do. The Todoist server runs every tool with one API key. A narrower key limits the damage from any caller you did not intend.
  8. Update. Todoist MCP to 10.3.3 or later, obsidian-sync-mcp to 0.5.7 or later.

A minimal Host and Origin guard for a Node-style handler looks like this:

const ALLOWED_HOSTS = new Set(["localhost", "127.0.0.1", "::1"]); const ALLOWED_ORIGINS = new Set(["http://localhost", "http://127.0.0.1"]); function guard(req, res, next) { const host = (req.headers.host ?? "").replace(/:\d+$/, "").replace(/^\[|\]$/g, ""); const origin = req.headers.origin; if (!ALLOWED_HOSTS.has(host)) return res.status(403).end(); if (origin && !ALLOWED_ORIGINS.has(origin)) return res.status(403).end(); next(); } 

Treat this as a starting point. Ports on the Origin value need handling that matches your deployment, and the guard belongs before any MCP method dispatch.

What is the generalizable gate principle?

Enforce authority where the tool executes, and authenticate the caller, not the network position. Three questions help when you review any agent tool surface:

  • Who can reach this endpoint? Include browsers, other local users, containers with published ports and LAN or VPN peers, not only the agent.
  • What proves who the caller is? If the answer is "it came from loopback", that is a network location, not an identity.
  • What can the caller do with the server's credential? If every request runs with one shared key, the endpoint is a confused deputy waiting for a caller.

This sits alongside the earlier posts in this series about approval prompts and allowlists. Those cover gates in front of the model. This one covers the gate that must exist behind it.

FAQ

Does this affect stdio MCP servers?
Per the Todoist advisory, no. The stdio entrypoint is not browser-reachable. The exposure is the HTTP transport.

Is binding to 127.0.0.1 ever enough?
It reduces exposure to other machines, but it does not stop a browser on the same machine. Without Host and Origin validation or a credential, any web page the operator visits can try the endpoint.

What is the difference between DNS rebinding and a direct cross-origin fetch?
In rebinding, the Host header carries the attacker's hostname. In a direct fetch, Host is 127.0.0.1 and the Origin header carries the attacker's site. A Host check stops the first, and an Origin check stops the second.

Do Host and Origin checks replace authentication?
No. They block browser-delivered attacks. A non-browser client on the network can forge both headers, so use a token on any network you do not fully control.

Which versions are fixed?
Todoist MCP: 10.3.3 (affected through 10.3.2). obsidian-sync-mcp: 0.5.7 (affected through 0.5.6, no-auth mode).

Were these exploited in the wild?
The advisories and records I read do not say so. Both include proof-of-concept steps against test setups.

Links

Further reading

  • The Allowlist Said Hugging Face Was Fine: How CVE-2026-54316 Turned Pre-Approved Downloads Into a Leak Channel (earlier post, same series)
  • The Parent Session Said No, So the Agent Opened a Child: How Session Inception Skipped a Trust Prompt (earlier post, same series)