Skip to content

AAK-METAADS-CVE-2026-48039-001: Meta Ads MCP forwards unauthenticated requests and leaks the access token (below 1.0.109)

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
MetaAdsMcpNoAuthTokenLeak

What it detects

meta-ads-mcp before 1.0.109 has AuthInjectionMiddleware.dispatch() unconditionally forward unauthenticated Streamable-HTTP requests to downstream MCP tool handlers without a 401, so any network-reachable caller invokes tools unauthenticated. With no per-request credential the handlers fall back to the META_ACCESS_TOKEN env var, and when the downstream Meta Graph API call fails the raw httpx request URL — including the operator's access_token query parameter — is serialised into the JSON-RPC response, delivering the credential to the unauthenticated caller (CVE-2026-48039, CVSS 9.1). Fixed in 1.0.109; treat < 1.0.109 (and unpinned) as exposed.

How to fix

Upgrade meta-ads-mcp to >= 1.0.109 and pin it. Require per-request authentication and return 401 when it is absent; never echo an outbound request URL (which carries access_token) into a tool response, and scrub credentials from error paths.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-METAADS-CVE-2026-48039-001

Limitations

Reads meta-ads-mcp in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock and uv.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (pdm.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References

  • CVE: CVE-2026-48039, CVE-2026-54549
  • OWASP MCP Top 10: MCP01:2025 (Token Mismanagement & Secret Exposure), MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP07:2025 (Insufficient Authentication & Authorization)
  • OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse), ASI04 (Agentic Supply Chain Vulnerabilities)
  • Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
  • CSA AI Controls Matrix (AICM): DSP-17, IAM-01, STA-08

All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-METAADS-CVE-2026-48039-001.md: the page then shows that text, with the registry reference appended under it.