CVE-2026-120997

Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role

Published Nov 10, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability in the NervesHubWeb web component enables a user who has been removed from an organization or demoted to a lower role to continue exercising the privileges of their previous role through any dashboard pages, console sessions, or local shell channels that were open at the time of the change. The system loads the user’s role when a page is mounted and checks membership only when a socket joins; neither action is refreshed when the user’s status is altered. As a result, alread‑opened pages keep making requests and console subscriptions continue to transmit commands to devices until the page is refreshed or the socket disconnects. Additionally, console connections are created with a 24‑hour token that contains only the user’s identifier and is not revoked when the user signs out, meaning a token captured from a page allows the holder to maintain console access at the token’s level of privilege until it expires.

Affected Systems

Affected systems are installations of nerves_hub_web version 1.0.0 through 2.5.2 inclusive. Version 2.5.3 introduces fixes that correctly invalidate sessions when a member’s role changes or the member is removed.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, and the EPSS score is reported as < 1%, implying a very low exploitation likelihood. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a legitimate authenticated user who retains an open page or socket after their role has been reduced or they have been removed, thereby continuing to act with elevated privileges until the connection is refreshed or severed. This risk is limited to users who already possess a live session or have captured a console token before their role alteration.

Remediation

Vendor Workaround

After removing a member or lowering their role, restart the web nodes. That closes every open page and console, and each one is checked again when it reconnects. A socket token cannot be revoked before it expires short of changing SECRET_KEY_BASE, which signs everyone out.


OpenCVE Recommended Actions

  • Upgrade to nerves_hub_web version 2.5.3 or later, which implements proper session invalidation for role changes.
  • If an immediate patch is not possible, restart all web nodes after any member removal or role downgrade; this closes all active pages and sockets, forcing re‑authentication.
  • If a temporary forced sign‑out is required, change the system’s SECRET_KEY_BASE to invalidate all existing session tokens.

Generated by OpenCVE AI on November 15, 2026 at 07:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role
First Time appeared Nerves-hub
Nerves-hub nerves Hub Web
Weaknesses CWE-1464
CWE-1465
CPEs cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*
Vendors & Products Nerves-hub
Nerves-hub nerves Hub Web
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 19, 2026, 7:53 AM
Reserved
Nov 5, 2026, 2:30 PM
Status
Deferred
Published
Nov 10, 2026, 11:16 AM
Modified
Nov 12, 2026, 8:07 PM