CVE-2026-49471: Serena AI Toolkit DNS Rebinding RCE—Patch to v1.5.2
Serena is a widely-used AI coding toolkit that includes a web dashboard for interacting with its semantic retrieval and code editing features. Before version 1.5.2, this dashboard ran an unprotected API server on a predictable port without authentication, CSRF defenses, or Host validation. An attacker can exploit this by crafting a malicious webpage; when a user visits it while Serena is running, the attacker's page can communicate directly with the local API via DNS rebinding and inject malicious commands into Serena's persistent memory. Because Serena autonomously reads and executes those commands—particularly through its shell command execution feature—the injected payload runs with the user's privileges. The attack requires only that the victim click a link; no special network position or prior compromise is needed.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.3 HIGH · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-306, CWE-352
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-07 / 2026-07-20
NVD description (verbatim)
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.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-49471 exploits a combination of architectural weaknesses in Serena's Flask-based dashboard API. The API binds to a fixed, easily-discoverable port, lacks authentication and CSRF protection, and does not validate the Host header. An attacker performs DNS rebinding by controlling a domain that resolves first to their server (for initial JavaScript delivery) and then to 127.0.0.1 (to reach the victim's local API). The browser's same-origin policy is bypassed because the rebind causes the victim's browser to treat subsequent requests as same-origin. With HTTP requests sent to the unprotected API, the attacker writes arbitrary JSON or commands into Serena's memory store. When the Serena agent processes its persistent state, it interprets the injected content as legitimate instructions. If those instructions invoke execute_shell_command with shell=True, arbitrary shell code executes. The vulnerability chain requires user interaction (visiting a malicious link) and relies on Serena being active, making the attack vector Network/User-Required with High complexity (AC:H) but with Critical impact when successful.
Business impact
Organizations deploying Serena for AI-assisted development face remote code execution risk to development workstations and build environments. A compromised Serena instance can run shell commands, read/write files, and pivot to other systems on the network. This is particularly severe in development pipelines where Serena might have elevated privileges or integration with CI/CD systems, artifact repositories, or source control. The attack is silent and requires no sophisticated adversary infrastructure—a malicious ad, compromised forum post, or social engineering link suffices. Teams using Serena should assume that users may visit untrusted web content during their workday.
Affected systems
oraios-ai Serena versions prior to v1.5.2 are affected. The vulnerability is present in all deployments where the dashboard is enabled and accessible to a browser on the same machine or local network. Organizations running Serena in isolated environments (e.g., air-gapped networks) or with network segmentation isolating development workstations are at reduced risk, but standard office networks offer no protection.
Exploitability
Exploitability is moderate in practice but high in impact. The attack requires the victim to visit an attacker-controlled or compromised webpage while Serena is running—a realistic scenario for development teams that browse the internet during work. No special privileges, credentials, or pre-existing access are needed. The DNS rebinding technique is well-understood and commonly used to probe local services. However, successful exploitation depends on the target running Serena actively and the attacker correctly guessing or discovering the port. The CVSS score of 8.3 (HIGH) reflects the combination of network attack vector, user interaction requirement, and high impact (confidentiality, integrity, and availability all compromised). This is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, but the simplicity of exploitation makes it likely to be weaponized once public disclosure is widespread.
Remediation
Upgrade Serena to version 1.5.2 or later immediately. The patch addresses all three root causes: it enforces authentication on the API, implements CSRF protection with token validation, and adds Host header validation to prevent DNS rebinding attacks. There is no workaround for unpatched versions other than disabling the dashboard entirely, which removes Serena's web interface functionality. Teams unable to patch immediately should isolate Serena instances from untrusted networks and restrict user browsing on machines running Serena.
Patch guidance
Verify your installed Serena version by checking the version output in your installation or the application's about/settings page. If you are on any version prior to v1.5.2, download and apply the update from the official oraios-ai repository. Test the patch in a non-production environment first to ensure compatibility with your existing Serena workflows and any integrations. After patching, restart the Serena service to ensure the new authentication and validation code is in effect. If you are already on v1.5.2 or later, no action is required for this specific vulnerability.
Detection guidance
Monitor for suspicious HTTP requests to the Serena API port (verify the default port from your deployment documentation). Look for POST requests to API endpoints with unusual JSON payloads, particularly those containing shell commands or executable code. Examine Serena's persistent memory or configuration files for injected content that you did not explicitly add. Check browser history and DNS logs on development workstations for evidence of DNS rebinding attacks (multiple A records returned for the same domain, or rapid resolution changes). If you suspect an attack, inspect Serena's execution logs for unexpected shell commands and audit the system for signs of lateral movement or data exfiltration. Implement network-level monitoring to alert on requests to localhost services from external origins.
Why prioritize this
This vulnerability should be patched within 72 hours of inventory. The combination of easy exploitation (only requires a malicious link), high impact (remote code execution with user privileges), and broad applicability to development environments makes it a tier-1 priority. Development teams are frequent targets for supply-chain attacks, and Serena's role in the build and coding pipeline means compromise can affect code quality, security, and release integrity. While KEV status is not yet active, the technical simplicity ensures this will be exploited in the wild once the patch is publicly available. Early patching denies attackers an easy entry point and reduces the window of exposure.
Risk score, explained
CVSS 8.3 is justified by the following factors: AV:N indicates network-accessible attack surface with no special position required; AC:H reflects that DNS rebinding setup and user interaction are needed but both are practical; PR:N means no authentication is required; UI:R correctly captures that the victim must visit a malicious page; S:C accounts for scope change because the compromised Serena process can affect other services on the system; and C:H, I:H, A:H reflect that the attacker gains full code execution and can read, modify, and delete data. The HIGH severity is warranted for development and research environments where RCE is catastrophic.
Frequently asked questions
Do I need to be connected to the internet for Serena to be vulnerable to this attack?
No. The attacker's webpage can be hosted anywhere accessible to your browser. Your Serena instance only needs to be running locally; it does not need internet access. The attack works over your local network or even on a fully air-gapped machine if you visit an attacker-controlled webpage downloaded to that machine.
What does the patch do to prevent this attack?
Version 1.5.2 adds three key defenses: (1) authentication requiring valid credentials to access the API, (2) CSRF token validation so that requests must originate from a trusted source, and (3) Host header validation to reject DNS rebinding attempts. Together, these prevent an attacker from injecting commands into Serena's memory store remotely.
If I only use Serena's command-line interface and never open the web dashboard, am I safe?
The vulnerability is specific to the dashboard API. If you do not enable or use the web dashboard, the attack surface does not apply. However, if the dashboard is installed and the service is running—even if you do not actively use it—the port is still exposed and the vulnerability remains exploitable. Check your Serena configuration to confirm whether the dashboard is disabled.
Can I temporarily disable Serena's web dashboard to stay safe until I can patch?
Yes. Disabling the dashboard will prevent the API from being exposed. Consult your Serena documentation for the configuration option to disable the dashboard or web server component. This is a safe interim mitigation, though upgrading to v1.5.2 is the permanent fix.
This analysis is provided for informational purposes to help security teams assess and prioritize patching. It is not a substitute for vendor security advisories or your organization's vulnerability management policy. Verify all patch versions and affected product details against official oraios-ai documentation before deploying updates. Test patches in non-production environments. SEC.co makes no warranty regarding the completeness or accuracy of this analysis and disclaims liability for decisions made based on it. Consult your security team and the vendor if you have questions about applicability to your environment. Source: NVD (public-domain), retrieved 2026-08-16. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-59148HIGHUnauthenticated Admin API Exposes Mockoon to Environment Variable Theft and Route Manipulation
- CVE-2026-45610MEDIUMWWBN AVideo 2FA CSRF Vulnerability – Cross-Site Account Takeover Risk
- CVE-2018-25437HIGHCherryFramework Themes Information Disclosure Vulnerability
- CVE-2023-54350HIGHWordPress Augmented-Reality Plugin Remote Code Execution
- CVE-2025-68052HIGHUnauthenticated CSRF in Eagle Booking ≤1.3.4.3 – Patch Guidance
- CVE-2026-0283HIGHPAN-OS Authentication Bypass in Large Scale VPN
- CVE-2026-10054HIGHEclipse Theia Unauthenticated Terminal RPC Vulnerability
- CVE-2026-10243HIGHSmart Parking System 1.0 Authentication Bypass – Remote Admin Access