CVE-2026-41166: OpenRemote has Improper Access Control via updateUserRealmRoles function
CVE-2026-41166 · Severity: high · CVSS 7 · Published 2026-04-22
OpenRemote is an open-source internet-of-things platform. Prior to version 1.22.1, a user who has `write:admin` in one Keycloak realm can call the Manager API to update Keycloak realm roles for users in another realm, including `master`. The handler uses the `{realm}` path segment when talking to the identity provider but does not check that the caller may administer that realm. This could result in a privilege escalation to `master` realm administrator if the attacker controls any user in `master` realm. Version 1.22.1 fixes the issue.
Yes. io.openremote:openremote-manager (Maven): upgrade to 1.22.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-41166?
Check whether you run io.openremote:openremote-manager (Maven) or OpenRemote at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
io.openremote:openremote-manager (Maven): upgrade to 1.22.1 or later
# set io.openremote:openremote-manager to 1.22.1 in your pom.xml or build.gradle