Meta Ads MCP: Unauthenticated HTTP MCP Tool Execution Leaks Operator Meta Access Token
CVE-2026-48039 · GHSA-9gw6-46qc-99vr · published 2026-06-11 · updated 2026-08-07
- Severity
- Critical
- CVSS score
- 9.1
- Chance of exploitation (EPSS)
- 0.59%
- Fixed in
- 1.0.109
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
An unauthenticated attacker who can reach the MCP server's HTTP port (default 8080) can invoke any registered MCP tool as the operator, consuming the operator's Meta Ads API quota and performing read or write operations on connected Meta ad accounts. When any tool call triggers a Graph API error, the operator's METAACCESSTOKEN is returned verbatim in the request_url field of the 200 OK JSON-RPC response, enabling the attacker to exfiltrate the long-lived credential and subsequently access the Meta Graph API directly outside the MCP interface.
Upgrade meta-ads-mcp to 1.0.109 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
In AuthInjectionMiddleware.dispatch() (httpauthintegration.py), return a 401 Unauthorized response when neither authtoken nor pipeboardtoken is present, instead of falling through to callnext: In makeapirequest() (api.py), strip accesstoken from the request_url in error payloads, or transmit the token via an Authorization: Bearer header rather than a URL query parameter to prevent it from appearing in URLs, server logs, or error responses.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| meta-ads-mcp | PyPI | <= 1.0.108 | 1.0.109 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.