Unvalidated Host Header Vulnerability in TP-Link Tapo Smart Device API
CVE-2026-77329
What is CVE-2026-77329?
An unvalidated host header vulnerability exists in the Tapo MCP Server impacting versions 0.3.1 to 0.5.0 of TP-Link Tapo products. This vulnerability arises from the Streamable HTTP implementation, where the function disable_allowed_hosts() is called without proper validation of Host or Origin headers. As a result, if deployed without an API key, the listener can be susceptible to DNS rebinding attacks. Attackers can exploit this by executing same-origin browser requests targeting the victim's local Tapo MCP listener. Successful exploitation allows unauthorized access to control various device functions, including actuation of connected devices and capturing snapshots from cameras. It is crucial to note that installations utilizing the TAPO_MCP_API_KEY are safeguarded against these unauthorized paths. This issue has been rectified in version 0.5.0.
Affected Version(s)
tapo >= 0.3.1, < 0.5.0
