Auth
A local MCP server you run for your AI tool can be controlled by any website you open
Cataloged November 26, 2026 · Cursor
Symptom
This applies when a local MCP server you run for an AI coding tool, including Cursor, listens for HTTP on localhost and does not check the Host or Origin header and does not require a caller token. A website open in a browser on that same machine can then use the server. If this project has no local HTTP MCP server, this card does not apply. Cursor is the platform tag because that is the MCP configuration this site's readers open. The advisories describe the server, not a bug in one editor, so the same running server is reachable from a browser no matter which tool started it. This card does not name another tool's config filename. Two reviewed GitHub advisories, both published November 19, 2026, are the cases this card can check by version. GitHub Advisory GHSA-833v-v58w-294h, CVE-2026-76807, is rated critical, with CVSS 3.1 score 9.3. Its summary is "Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server". It says the self-hosted todoist-mcp-http server accepts browser-origin MCP requests with attacker-controlled Host and Origin headers. It says a malicious website can use DNS rebinding to route its own origin to a local 127.0.0.1 MCP server, then invoke Todoist MCP tools without a caller credential. It says the stdio entrypoint is not browser-reachable. The npm package is @doist/todoist-mcp. The vulnerable range is <= 10.3.2, and the first patched version is 10.3.3. The write-up also names package version 10.3.1, at commit d2903e0d945d2a559d71c091337ad6380511e62f, as the version it examined. This card does not say that commit is 10.3.2. The advisory says the HTTP server runs the tools with the operator's TODOIST_API_KEY and binds to loopback by default. It says the browser does not supply a Todoist API token. The server supplies the configured key. It says the demonstrated impact is task creation and completion, and that the same path exposes the rest of the write tools, including updates, rescheduling, project and section changes, comments, reminders, filters, labels, goals, assignments, and object deletion. This card does not describe how that request is built. The v10.3.3 release notes, on a release page that shows published 2026-06-24, say "validate Host/Origin on HTTP transport to block DNS rebinding". This card does not say the fix and the advisory were published on the same day. That advisory record's nvd_published_at is 2026-11-18. This card does not quote an NVD page. GitHub Advisory GHSA-mx6p-3fg7-v6pj, CVE-2026-77283, is rated high, and its CVSS 4.0 score is 8.8. That record does not print a CVSS 3.1 score. Its summary is "obsidian-sync-mcp: Missing Host/Origin validation lets a public website drive a victim's Obsidian vault via DNS rebinding (no-auth mode)". It says that when obsidian-sync-mcp runs without MCP_AUTH_TOKEN, the HTTP endpoint does not validate Host or Origin before it dispatches an MCP method. The vulnerable range is <= 0.5.6, and the patched version is 0.5.7. It says this includes the README "Filesystem mode (simplest)" quickstart and the self-hosted docker-compose setup, where MCP_AUTH_TOKEN defaults to empty. It says that page can read the whole vault and create, overwrite, delete, and move notes, with no credentials and no prompt. It says a deployment that sets MCP_AUTH_TOKEN is not affected, because a browser does not attach that bearer token, so a forged request returns HTTP 401. The v0.5.7 release page shows published 2026-07-10. Its notes say the no-auth endpoint now validates Host and Origin and rejects a request that is not from localhost, 127.0.0.1, or ::1, and that MCP_ALLOWED_HOSTS extends that list. That advisory record's nvd_published_at is 2026-11-18. The MCP specification, revision 2026-07-28, Streamable HTTP, section "Security & Endpoint", says servers MUST validate the Origin header on all incoming connections to prevent DNS rebinding attacks. It says that if Origin is present and invalid, servers MUST respond with HTTP 403 Forbidden. It says that when running locally, servers SHOULD bind only to localhost (127.0.0.1) rather than all network interfaces (0.0.0.0). It says servers SHOULD implement proper authentication for all connections. It says: "Without these protections, attackers could use DNS rebinding to interact with local MCP servers from remote websites." The 2025-06-18 transports page, section Security Warning, states those three requirements and that closing sentence. It does not include the 403 sentence. The specification does not say to validate the Host header. The Host check is in the two advisories. This card does not say every localhost MCP server is one of these two CVEs.
Root cause
Binding to 127.0.0.1 is the interface that accepts the connection. It is not a check of which website sent it. GitHub Advisory GHSA-833v-v58w-294h says: "A user can run the MCP server only on loopback and still become reachable from an unrelated public website because DNS rebinding preserves the attacker's Host and Origin while routing the TCP connection to 127.0.0.1." In that sentence, the browser still presents the other website's Host and Origin, and the connection lands on 127.0.0.1. The server accepted the request. The advisory says the HTTP route did not validate Host or Origin, and that the middleware validated the server's Todoist token, not the browser caller. GitHub Advisory GHSA-mx6p-3fg7-v6pj describes a second path that does not use rebinding. A page fetches the loopback address directly, so Host is genuinely loopback and Origin is the page's origin. The advisory says the transport's wildcard CORS header would otherwise expose the response. It says the Host check stops the rebinding case, and the Origin check stops the direct fetch, and that 0.5.7 rejects the request before any MCP method runs. It also says non-browser MCP clients send no Origin, so those clients are unaffected by the Origin check. The MCP specification, revision 2026-07-28, says servers MUST validate Origin to prevent DNS rebinding attacks, SHOULD bind only to localhost (127.0.0.1) rather than 0.0.0.0, and SHOULD implement proper authentication for all connections. The Todoist advisory's remediation says Host and Origin validation reduce DNS-rebinding exposure, and that they are not caller authentication. The v10.3.3 docs say the HTTP server validates Host and Origin against localhost, 127.0.0.1, and [::1], plus any names in ALLOWED_HOSTS. Those docs also say not to expose that server on a LAN or the public internet unless you add your own authentication controls. They do not name a variable for a caller token. TODOIST_API_KEY, on that page, is the operator's Todoist key that the tools run as.
Before and after
The before line for each package is the top of the vulnerable range in the GitHub advisory record. @doist/todoist-mcp 10.3.2 is the top of <= 10.3.2 in GHSA-833v-v58w-294h. obsidian-sync-mcp 0.5.6 is the top of <= 0.5.6 in GHSA-mx6p-3fg7-v6pj. The after line is the first patched version each record names: 10.3.3 and 0.5.7. The v10.3.3 release notes say that version validates Host and Origin on the HTTP transport. The v0.5.7 release notes say the no-auth server validates Host and Origin and rejects a request not from localhost, 127.0.0.1, or ::1. The Obsidian advisory also says setting MCP_AUTH_TOKEN closes the issue on any version. This pair does not show that variable, and it does not show a token value. It also does not show the stdio command. The Todoist advisory says the stdio entrypoint is not browser-reachable.
Before
@doist/todoist-mcp 10.3.2 obsidian-sync-mcp 0.5.6
After
@doist/todoist-mcp 10.3.3 obsidian-sync-mcp 0.5.7
Fix prompt
In this project only. Do not scan or test anyone else's machine. Do not open an MCP server you do not run. Do not print keys, tokens, passwords, or environment variable values. When you mention a variable, print the name only. Do not send an HTTP request to a localhost MCP URL. Do not call an MCP method. Do not add, complete, delete, or edit a task, a note, or any other data.
1. This prompt applies if Cursor is configured to reach an MCP server at an HTTP URL on localhost, 127.0.0.1, or [::1], or if this project itself implements an MCP server that accepts HTTP. Cursor's MCP docs say the project file is .cursor/mcp.json and the global file is ~/.cursor/mcp.json. Cursor's help page "MCP integrations" says both files are merged, and the project file wins when the same server name is in both. Read both files if they exist. For each entry, give the server name and say whether it has a command or a url. Cursor's MCP docs call a command entry stdio, and a url entry Streamable HTTP or SSE. If the entry has a url, say whether it starts with http://127.0.0.1, http://localhost, http://[::1], or http://0.0.0.0. Do not print a query string. Do not print headers, env, or auth values. If neither file exists and this project does not implement an MCP HTTP server, say so and stop. Hosted Cloud Agents do not read ~/.cursor/mcp.json. That sentence is on Cursor's MCP docs. This prompt is about a server listening on the machine where the browser is open. It does not say a hosted cloud agent is the browser in these advisories.
2. A command entry is not the browser path in GitHub Advisory GHSA-833v-v58w-294h. That advisory says the stdio entrypoint of @doist/todoist-mcp is not browser-reachable, and that the browser-reachable component is todoist-mcp-http. Cursor's MCP docs, in the answer "Can I use MCP servers with sensitive data?", say: "Run sensitive servers locally with stdio transport." The Todoist docs at tag v10.3.3 show the stdio entry as type stdio, command npx, args ["@doist/todoist-mcp"], and env TODOIST_API_KEY. Those docs say to add that section to mcp.json in Claude, Cursor, and other hosts. If a file you own points a local HTTP url at todoist-mcp-http, replace that url entry with the stdio entry those docs print. Put the key in the environment and refer to it as ${env:TODOIST_API_KEY}. Cursor's docs say ${env:NAME} is the interpolation for an environment variable. Do not paste a key into the file. If the server is not Todoist, do not invent a stdio command. Report the server name and leave that entry unchanged.
3. If this project depends on @doist/todoist-mcp, read the version from the lockfile, or run npm ls @doist/todoist-mcp in this project. The advisory does not print the command npm ls. The advisory says the vulnerable range is <= 10.3.2 and the first patched version is 10.3.3. The v10.3.3 release notes say "validate Host/Origin on HTTP transport to block DNS rebinding". If this project runs todoist-mcp-http and the version is below 10.3.3, set the dependency to 10.3.3 or later. Do not downgrade a version that is already 10.3.3 or later. The v10.3.3 docs say the HTTP server validates Host and Origin against localhost, 127.0.0.1, and [::1], plus ALLOWED_HOSTS. The environment table on that page lists TODOIST_API_KEY, HOST, ALLOWED_HOSTS, PORT, and TODOIST_BASE_URL. It does not list a caller bearer-token variable. TODOIST_API_KEY is the operator's Todoist key. The advisory says the middleware checked that key, not the browser caller. Do not describe TODOIST_API_KEY as a caller token. The advisory's remediation says to require a per-run local bearer token, and that Host and Origin checks are not caller authentication. This prompt does not invent a Todoist variable name for that token.
4. If this project depends on obsidian-sync-mcp, read the version the same way. GitHub Advisory GHSA-mx6p-3fg7-v6pj says affected versions are <= 0.5.6 and the patched version is 0.5.7. It says the affected mode is no MCP_AUTH_TOKEN. It says setting MCP_AUTH_TOKEN closes the issue on any version, because a browser does not attach that bearer token and a forged request returns HTTP 401. It says 0.5.7 rejects, before any MCP method, a request whose Host is not localhost, 127.0.0.1, or ::1, unless that host is listed in MCP_ALLOWED_HOSTS, and a request whose Origin is a cross-origin value that is not in that allowlist. If the version is below 0.5.7, set it to 0.5.7 or later. If MCP_AUTH_TOKEN is unset for the server this project runs, tell me to set it in that server's environment. Do not print the value. Do not invent a value. The advisory says the header checks block browser-delivered requests only, and that a direct non-browser client can still forge both headers, so on an untrusted network set MCP_AUTH_TOKEN even on 0.5.7.
5. If this project itself implements an MCP server that accepts HTTP, put the checks in front of every MCP method. The MCP specification, revision 2026-07-28, section "Security & Endpoint", says servers MUST validate the Origin header on all incoming connections to prevent DNS rebinding attacks, and that if the Origin header is present and invalid, servers MUST respond with HTTP 403 Forbidden. It says when running locally, servers SHOULD bind only to localhost (127.0.0.1) rather than 0.0.0.0. It says servers SHOULD implement proper authentication. The specification does not say to validate Host. The two advisories do. Reject a request whose Host hostname is not localhost, 127.0.0.1, or [::1], unless that hostname is on an allowlist the operator set. Reject a Host value that is not a bare hostname or host:port. If Origin is present and its host is not on that allowlist, respond with HTTP 403 and do not handle an MCP method. Do not reject a missing Origin. The Obsidian advisory says non-browser clients send no Origin and are unaffected. The Todoist middleware in the 10.3.3 fix says a missing Origin is allowed, because non-browser clients do not send one. Also require a bearer token on this HTTP server, including when it binds to loopback. The Todoist advisory says Host and Origin validation are not caller authentication. Do not print the token. Do not log the token. Show me the diff.
6. Show me the diffs. Do not deploy. Do not start the server. Do not send a request to it. Do not print keys. Do not edit unrelated files.Paste this into the coding tool that has your own project open.
2-minute self-check
These steps are for an app you own. Do not run them against someone else's project.
- On your own machine, open .cursor/mcp.json in a project you own, and open ~/.cursor/mcp.json if you use that file. Those are the two paths on Cursor's help page "MCP integrations". Look for a url that starts with http://127.0.0.1, http://localhost, or http://[::1]. Cursor's MCP docs call a command entry stdio and a url entry Streamable HTTP or SSE. Do not open a config you do not own. Do not print headers, env values, or tokens. The same check matters when another AI coding tool on your machine is the program connected to that local HTTP server. The advisories describe the server. This card does not name that other tool's config file. Look in the config that tool actually uses for an HTTP URL on localhost.
- If a server you run is the npm package @doist/todoist-mcp, compare its version with 10.3.3. GitHub Advisory GHSA-833v-v58w-294h says the vulnerable range is <= 10.3.2 and the first patched version is 10.3.3. In a project you own, npm ls @doist/todoist-mcp prints the version when the package is a dependency of that project. The advisory does not print that command. If you start the server with npx and it is not a dependency, npm ls will not list it, and the version to read is the one that command runs. Do not paste a key. The HTTP command on the v10.3.3 docs page is todoist-mcp-http. The stdio command on that page is npx @doist/todoist-mcp. The advisory says the stdio entrypoint is not browser-reachable.
- If a server you run is obsidian-sync-mcp, compare its version with 0.5.7. GitHub Advisory GHSA-mx6p-3fg7-v6pj says the affected range is <= 0.5.6 and the patched version is 0.5.7. Confirm MCP_AUTH_TOKEN is set in the environment of the server you run. The advisory says setting that variable closes the issue on any version, and that a browser does not attach the bearer token. Do not print the value. Do not send a request to the server. Do not point this at a server you do not run.
Common questions
The server only listens on 127.0.0.1. Can a website still reach it?
Yes, for the servers these two advisories describe. GitHub Advisory GHSA-833v-v58w-294h says a user can run the MCP server only on loopback and still become reachable from an unrelated public website, because DNS rebinding preserves the attacker's Host and Origin while routing the TCP connection to 127.0.0.1. The address is where the connection lands. It is not a check of which site sent it. GitHub Advisory GHSA-mx6p-3fg7-v6pj describes a second path that does not use rebinding: a page fetches the loopback address directly, so Host is genuinely loopback and Origin is the page's. That advisory says the transport's wildcard CORS header would otherwise expose the response. Version 0.5.7 rejects that request before any MCP method. The MCP specification, revision 2026-07-28, still says a local server SHOULD bind only to localhost (127.0.0.1) rather than 0.0.0.0. That bind is one of the three protections on that page. It does not replace the Origin check or authentication.
I start Todoist with the stdio command, not todoist-mcp-http. Does the advisory include that?
The advisory says the stdio entrypoint is not browser-reachable, and that the browser-reachable component is todoist-mcp-http. The v10.3.3 docs page shows the stdio command as npx @doist/todoist-mcp, with TODOIST_API_KEY in the environment, and it says to add that section to mcp.json in Claude, Cursor, and other hosts. Cursor's MCP docs call a command entry stdio, and a url entry Streamable HTTP or SSE. A command entry is not the HTTP case this advisory describes. The vulnerable range on the advisory is still <= 10.3.2 for the package. The first patched version is 10.3.3, and that version's release notes say it validates Host and Origin on the HTTP transport.
Obsidian is older than 0.5.7, and MCP_AUTH_TOKEN is set. Does the advisory still call that affected?
The advisory says deployments that set MCP_AUTH_TOKEN are not affected. It says a bearer token is not attached by browsers, so a forged request returns HTTP 401. It says setting MCP_AUTH_TOKEN is the workaround on any version. The version range <= 0.5.6 is the no-auth mode, which the advisory says is the README quickstart and the docker-compose default where that variable is empty. Version 0.5.7 adds Host and Origin checks for that no-auth mode. The advisory also says those header checks block browser-delivered requests only, and that a direct non-browser client can still forge both headers, so on an untrusted network set MCP_AUTH_TOKEN even after the upgrade. This card does not say to print the token.
Sources
- GitHub Advisory GHSA-833v-v58w-294h (CVE-2026-76807): Todoist MCP HTTP server accepts browser-origin requests
- GitHub Advisory GHSA-mx6p-3fg7-v6pj (CVE-2026-77283): obsidian-sync-mcp no-auth mode does not validate Host or Origin
- MCP specification, 2026-07-28, Streamable HTTP: Security & Endpoint
- MCP specification, 2025-06-18, Transports: Security Warning
- todoist-mcp v10.3.3 release notes: validate Host and Origin on the HTTP transport
- todoist-mcp v10.3.3 docs: MCP Server Setup
- todoist-mcp 10.3.3 fix: require-trusted-host.ts allows a missing Origin and rejects an untrusted one
- obsidian-sync-mcp v0.5.7 release notes: Host and Origin checks in no-auth mode
- Cursor docs: Model Context Protocol (MCP)
- Cursor help: MCP integrations