CVE-2026-120997 · Package
NO FIX YET · SEE WHAT TO DO
NervesHub's web app does not end a removed or downgraded organization member's open dashboard pages, device consoles, or shell channels, and console tokens stay valid for 24 hours after sign-out. A former member can keep running actions and commands on devices they no longer have rights to.
first public Nov 10, 2026 · 1 source
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Teams that self-host NervesHub and manage IoT devices through its web dashboard, console, or local shell channels. Exposure depends on members who were removed or downgraded while still holding open sessions or tokens. Teams using only the hosted service or without multi-member organizations can skip it.
Not affected if managed-hosting
Who cares elixir, iot, nerves_hub, self-hosted
nerves_hub version in your mix.lock or release; versions from 1.0.0 before 2.5.3 are affected.nerves_hub moves to 2.5.3 or later (from the product range: fixed in 2.5.3).Improper Session Invalidation vulnerability in the dashboard pages, device console and local shell channels in nerves-hub nerves_hub_web allows an organization member who is removed or given a lower role to keep acting at their old role through anything they had open at the time. The dashboard reads the member's role once when a page mounts, in the assign_org_to_scope hook of NervesHubWeb.Auth, and the console, local shell and device event stream channels check membership once at join. Removing a member or changing their role tells none of them, so open pages keep carrying out actions and open consoles keep running commands on the device until the page reloads or the socket disconnects.
The dashboard also opens consoles over NervesHubWeb.UserSocket with a token that holds only the user's id, is accepted for 24 hours, and is not revoked by signing out, which disconnects only the session's LiveViews. Whoever holds a token taken from a page can open consoles as that user, within the user's current membership, until it expires.
This issue affects nerves_hub: from 1.0.0 before 2.5.3.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.