SmartScene

Smart home news, reviews, and guides — making your home smarter.

SmartScene

Smart home news, reviews, and guides — making your home smarter.

Home AutomationSmart Home News

openHAB 5.2.5 Fixes MCP Add-On Authorization Bypass

openHAB 5.2.5, released on November 18, is a security-focused patch release for the open-source home automation platform, and it carries a warning for anyone who has connected an AI assistant to their smart home. The headline fix closes an authorization bypass in openHAB’s optional MCP add-on, which could let a signed-in user with limited permissions perform actions their account was never supposed to allow. The same release patches three more flaws and adds a mitigation for a serious Java runtime bug. If you run openHAB 5.2.x, this is an update worth installing now — and if you use the MCP add-on, it is not optional.

What the MCP add-on flaw does

MCP, or Model Context Protocol, is the standard a growing number of AI clients use to connect to tools. In openHAB’s case, the tool is your home: through the MCP add-on, an AI assistant can read item states, send commands to devices, and even write rules. Every connection needs an openHAB API token, and tokens are tied to the user who created them, so an assistant inherits exactly that user’s permissions — or at least, that is how it is supposed to work.

In versions 5.2.0 through 5.2.4, it did not. The security advisory, GHSA-p8fj-254v-gp55, is titled “Authorization bypass in the MCP add-on,” and GitHub rates it Medium. In the maintainers’ own words: “The MCP add-on was not enforcing user permissions correctly allowing an authenticated user with restricted access to perform privileged read and write operations.”

In plain terms: if you created a limited openHAB account — for a guest, for a child, or for an AI client you deliberately did not want to have the run of the house — and that account signed in through the MCP add-on, the assistant could do more than the account was supposed to be allowed to do. A restricted account could read things it should not have seen and change things it should not have been able to touch.

Three limits keep the flaw from being worse than it sounds. First, an attacker still has to be signed in; this is not an unauthenticated hole. Second, the MCP add-on is not installed by default, so only systems where someone deliberately set up AI access are exposed to this particular bug. Third, the maintainers rate the impact as “low to moderate,” noting that granular user permissions are not yet a common setup in openHAB installations. The advisory does not say whether the flaw was exploited, and there is no evidence either way. The patch is version 5.2.5.

The rest of the release: Sonos, UPnP, CometVisu and Java4Shell

The MCP fix is the headline, but it is not the whole release. openHAB 5.2.5 also patches three further security issues, all published the same day:

  • Sonos binding — unauthenticated XXE from the local network (GHSA-vcqg-wx36-5j6j). A flaw in the Sonos binding allowed an XML external entity attack from the local network without any login, which could be used to read local files or probe internal services from a compromised device on the same network.
  • UPnP Control — XXE vulnerability (GHSA-fggq-pxrx-487g). A similar XML parsing flaw in UPnP Control affects every version from 3.0.1 through 5.2.4. The advisory notes the bug exists because an earlier fix, for CVE-2021-21266, was incomplete.
  • CometVisu — hidden config exposed through the file API (GHSA-4rfq-2grx-x23x). A hidden CometVisu configuration file could be read and written through openHAB’s general file API, exposing settings that were meant to stay out of reach.

On top of those, the release mitigates a Java runtime issue the project calls Java4Shell, tracked as CVE-2026-114938 with a CVSS score of 8.1. It is a heap buffer overflow in the Compiler component of Oracle Java SE, and because openHAB runs on Java, every openHAB installation was exposed to it. Version 5.2.5 turns off Java’s hardware-accelerated Base64 decoding by default, using the JVM flag -XX:-UseBASE64Intrinsics, to reduce that exposure. That is a workaround, not a full fix: the project still advises upgrading to a patched JDK when one is available for your platform.

The release also includes one non-security fix — the mercedesme add-on no longer sends oversized request headers on CIAM login — and the 5.3.0.M5 milestone, published the same afternoon, ships the same security fixes for users on the milestone line instead of 5.2.x.

Who should update, and who can wait

Update now if the MCP add-on is installed, especially if you have given a limited user an API token or used the add-on’s built-in OAuth flow for an AI client. That is the exact combination the bypass affects, and the fix is a one-version patch.

Update soon anyway if you run openHAB 5.2.x. Even without the MCP add-on, the Sonos, UPnP and CometVisu fixes — plus the Java4Shell mitigation — are reason enough to stay current, and the update is a routine patch release rather than a major version jump.

If the MCP add-on is not installed, you are not the audience for the MCP fix. The rest of the release is still a reason to update, but nothing in it demands dropping everything. Either way, Java is a second, separate job: 5.2.5 reduces the Java4Shell exposure, but a patched JDK is the real fix, so check for one from your Java vendor as well.

Why this matters beyond openHAB

This is an openHAB bug, in an openHAB add-on, and it says nothing about whether other hubs have the same hole. What it does illustrate is a pattern that now matters to every smart home platform: the pipe between an AI client and a hub has to enforce the same permissions the app does. If it does not, a “limited” account stops being limited the moment you hook up an assistant.

That pattern is about to get a lot more common. AI agents are moving into the smart home quickly — Google has opened Google Home to AI agents through MCP, and Tuya has released an official skill that lets agents run Smart Life gear by chat. Every one of those integrations hands an AI system some level of access to a home, and every one of them depends on the permission checks working exactly as advertised.

The practical lesson is the same one security teams have repeated for years: give AI clients their own dedicated accounts, grant the least privilege that still lets them do their job, and review those tokens regularly. openHAB deserves credit here for publishing a real advisory, with a clear description and a patched version, for a problem in an optional AI add-on — that is considerably more useful than a vague “security improvements” line in a changelog. The job for users is small: if the add-on is on, go to 5.2.5. And if you are thinking about wiring an assistant into a hub, this is a concrete example of why the account you hand it should not be able to do more than you meant.

2 thoughts on “openHAB 5.2.5 Fixes MCP Add-On Authorization Bypass”

  • **TraceEagle — Free, All-Platform Network Packet Capture & Debugging Tool**

    – Raw packet capture at the NIC level: DNS, QUIC, TCP/UDP — nothing slips through, granularity on par with Wireshark
    – Auto-decrypts on capture: no proxy setup, no key import, no environment config — ciphertext becomes plaintext instantly
    – Built for the hard cases: no jailbreak, no cert install, bypasses certificate pinning, decodes HTTP/3 & QUIC
    – Full debugging toolkit: breakpoint editing, request replay, one-click load testing (true p99), reverse-engineer OpenAPI from traffic, generate code
    – AI-powered capture: built-in MCP service exposing 40+ tools as APIs — let your AI assistant capture and debug on demand

    Free across all platforms. Perfect for integration testing, mobile app debugging, API security, load testing, and network troubleshooting.

    Reply
  • **TraceEagle — Free, All-Platform Network Packet Capture & Debugging Tool**

    – Raw packet capture at the NIC level: DNS, QUIC, TCP/UDP — nothing slips through, granularity on par with Wireshark
    – Auto-decrypts on capture: no proxy setup, no key import, no environment config — ciphertext becomes plaintext instantly
    – Built for the hard cases: no jailbreak, no cert install, bypasses certificate pinning, decodes HTTP/3 & QUIC
    – Full debugging toolkit: breakpoint editing, request replay, one-click load testing (true p99), reverse-engineer OpenAPI from traffic, generate code
    – AI-powered capture: built-in MCP service exposing 40+ tools as APIs — let your AI assistant capture and debug on demand

    Free across all platforms. Perfect for integration testing, mobile app debugging, API security, load testing, and network troubleshooting.

    Try it → [https://traceeagle.com/](https://traceeagle.com/)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *