p PatchFirst

CVE-2026-49471

CVE-2026-49471 · Serena: Unauthenticated Flask dashboard on fixed port enables DNS rebinding → memory poisoning → RCE

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Serena is a powerful MCP toolkit for coding that provides semantic retrieval and editing capabilities. Prior to v1.5.2, Serena's built-in web dashboard 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. This issue is fixed in version v1.5.2.

CVSS 8.3 · High · EPSS 0.4% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • serena

    Versions
    • < 1.5.2: Affected

    No fix published

  • serena-agent PyPI

    Versions
    • 0.1.3
    • 0.1.4
    • 1.0.0
    • 1.1.0
    • 1.1.1
    • 1.1.2
    • 1.2.0
    • 1.3.0
    • 1.5.0
    • 1.5.1
    Affected ranges
    • ECOSYSTEM: < 1.5.2

    Update to 1.5.2

Original sources

Check your server →