Skip to content

AAK-MCP-SERENA-CVE-2026-49471-001: Serena MCP toolkit below 1.5.2 (unauthenticated dashboard → DNS-rebinding RCE)

Severity
HIGH
Category
MCP Configuration (mcp-config)
Scanner
agent_audit_kit/scanners/supply_chain.py
Auto-fixable
No.
SARIF name
SerenaMcpUnauthDashboardRce

What it detects

The Serena MCP coding toolkit (serena-agent) before 1.5.2 ships a built-in web dashboard that "exposes an unauthenticated Flask API on a fixed, predictable port, with no authentication, no CSRF protection, and no Host header validation. A DNS rebinding attack allows a malicious webpage to reach this API from any browser and write arbitrary content to the agent's persistent memory store, which the agent reads and acts on autonomously. Combined with execute_shell_command using shell=True, this creates a remote code execution chain requiring only that the victim visit a malicious webpage while Serena is running." (NVD, CVE-2026-49471, HIGH CVSS 8.3, CWE-306 + CWE-352, published 2026-07-07). A project depending on serena-agent below 1.5.2 (or unpinned, or launched from an unpinned oraios/serena / serena-mcp-server reference) is exposed. Fixed in 1.5.2.

How to fix

Upgrade serena-agent to >= 1.5.2 and pin it explicitly. 1.5.2 binds the dashboard to loopback, adds a random per-session token, validates the Host header, and enforces CSRF — which together break the DNS-rebinding path. Do not expose the Serena dashboard on a routable interface, and keep execute_shell_command behind an explicit approval gate.

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

agent-audit-kit scan . --rules AAK-MCP-SERENA-CVE-2026-49471-001

Limitations

Reads the declarations and launchers of serena-agent and serena-mcp-server in the root dependency manifests and in the root .mcp.json, mcp.json, claude_desktop_config.json and *.mcp.yaml or *.mcp.yml files, and reports one whose range admits a release below 1.5.2 or that states no version (a git requirement's dotted release tag is its version; a commit, a branch or a tag with no dot, @v2, states none), the version a root lockfile resolves when it is below 1.5.2, every oraios/serena git or image reference whose tag is below 1.5.2 or missing, and a command line that runs serena-mcp-server without fetching it (uv run --directory ../serena serena-mcp-server, with or without a --with package). Only a tag written after the @ alone is read as a version: @refs/tags/v1.5.2, and the release an archive's file name states (.../archive/refs/tags/v1.5.2.tar.gz, serena-agent-1.5.2.tar.gz), are not, so such a requirement is reported as unpinned even at 1.5.2 or later. A mention of the names that is none of these, such as a server's name, is not read. Only these root-level files are read, so the same server launched from .cursor/mcp.json is missed. A file over 2 MB is not read. A lockfile over 32 MiB is not read.

References

  • CVE: CVE-2026-49471
  • OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP07:2025 (Insufficient Authentication & Authorization)
  • OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
  • Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
  • CSA AI Controls Matrix (AICM): IAM-01, IAM-16

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-MCP-SERENA-CVE-2026-49471-001.md: the page then shows that text, with the registry reference appended under it.