{"containers":{"cna":{"affected":[{"collectionURL":"https://ghcr.io","cpes":["cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.NervesHubWeb.UserSocket'","'Elixir.NervesHubWeb.UserConsoleChannel'","'Elixir.NervesHubWeb.UserLocalShellChannel'","'Elixir.NervesHubWeb.DeviceEventsStreamChannel'","'Elixir.NervesHubWeb.Auth'","'Elixir.NervesHub.Accounts'"],"packageName":"nerves-hub/nerves-hub","packageURL":"pkg:oci/nerves-hub?repository_url=ghcr.io%2Fnerves-hub","product":"nerves_hub_web","programFiles":["lib/nerves_hub_web/channels/user_socket.ex","lib/nerves_hub_web/channels/user_console_channel.ex","lib/nerves_hub_web/channels/user_local_shell_channel.ex","lib/nerves_hub_web/channels/device_events_stream_channel.ex","lib/nerves_hub_web/auth.ex","lib/nerves_hub/accounts.ex"],"programRoutines":[{"name":"'Elixir.NervesHubWeb.UserSocket':connect/2"},{"name":"'Elixir.NervesHubWeb.UserSocket':id/1"},{"name":"'Elixir.NervesHubWeb.UserConsoleChannel':join/3"},{"name":"'Elixir.NervesHubWeb.UserLocalShellChannel':join/3"},{"name":"'Elixir.NervesHubWeb.DeviceEventsStreamChannel':join/3"},{"name":"'Elixir.NervesHubWeb.Auth':on_mount/4"},{"name":"'Elixir.NervesHubWeb.Auth':log_out_user/1"},{"name":"'Elixir.NervesHub.Accounts':soft_delete_org_user/1"},{"name":"'Elixir.NervesHub.Accounts':change_org_user_role/2"}],"vendor":"nerves-hub","versions":[{"lessThan":"2.5.3","status":"affected","version":"1.0.0","versionType":"other"}]},{"cpes":["cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.NervesHubWeb.UserSocket'","'Elixir.NervesHubWeb.UserConsoleChannel'","'Elixir.NervesHubWeb.UserLocalShellChannel'","'Elixir.NervesHubWeb.DeviceEventsStreamChannel'","'Elixir.NervesHubWeb.Auth'","'Elixir.NervesHub.Accounts'"],"packageName":"nerves_hub","packageURL":"pkg:otp/nerves_hub?repository_url=https:%2F%2Fgithub.com%2Fnerves-hub%2Fnerves_hub_web&vcs_url=git%20https:%2F%2Fgithub.com%2Fnerves-hub%2Fnerves_hub_web.git","product":"nerves_hub_web","programFiles":["lib/nerves_hub_web/channels/user_socket.ex","lib/nerves_hub_web/channels/user_console_channel.ex","lib/nerves_hub_web/channels/user_local_shell_channel.ex","lib/nerves_hub_web/channels/device_events_stream_channel.ex","lib/nerves_hub_web/auth.ex","lib/nerves_hub/accounts.ex"],"programRoutines":[{"name":"'Elixir.NervesHubWeb.UserSocket':connect/2"},{"name":"'Elixir.NervesHubWeb.UserSocket':id/1"},{"name":"'Elixir.NervesHubWeb.UserConsoleChannel':join/3"},{"name":"'Elixir.NervesHubWeb.UserLocalShellChannel':join/3"},{"name":"'Elixir.NervesHubWeb.DeviceEventsStreamChannel':join/3"},{"name":"'Elixir.NervesHubWeb.Auth':on_mount/4"},{"name":"'Elixir.NervesHubWeb.Auth':log_out_user/1"},{"name":"'Elixir.NervesHub.Accounts':soft_delete_org_user/1"},{"name":"'Elixir.NervesHub.Accounts':change_org_user_role/2"}],"repo":"https://github.com/nerves-hub/nerves_hub_web","vendor":"nerves-hub","versions":[{"lessThan":"2.5.3","status":"affected","version":"1.0.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.NervesHubWeb.UserSocket'","'Elixir.NervesHubWeb.UserConsoleChannel'","'Elixir.NervesHubWeb.UserLocalShellChannel'","'Elixir.NervesHubWeb.DeviceEventsStreamChannel'","'Elixir.NervesHubWeb.Auth'","'Elixir.NervesHub.Accounts'"],"packageName":"nerves-hub/nerves_hub_web","packageURL":"pkg:github/nerves-hub/nerves_hub_web","product":"nerves_hub_web","programFiles":["lib/nerves_hub_web/channels/user_socket.ex","lib/nerves_hub_web/channels/user_console_channel.ex","lib/nerves_hub_web/channels/user_local_shell_channel.ex","lib/nerves_hub_web/channels/device_events_stream_channel.ex","lib/nerves_hub_web/auth.ex","lib/nerves_hub/accounts.ex"],"programRoutines":[{"name":"'Elixir.NervesHubWeb.UserSocket':connect/2"},{"name":"'Elixir.NervesHubWeb.UserSocket':id/1"},{"name":"'Elixir.NervesHubWeb.UserConsoleChannel':join/3"},{"name":"'Elixir.NervesHubWeb.UserLocalShellChannel':join/3"},{"name":"'Elixir.NervesHubWeb.DeviceEventsStreamChannel':join/3"},{"name":"'Elixir.NervesHubWeb.Auth':on_mount/4"},{"name":"'Elixir.NervesHubWeb.Auth':log_out_user/1"},{"name":"'Elixir.NervesHub.Accounts':soft_delete_org_user/1"},{"name":"'Elixir.NervesHub.Accounts':change_org_user_role/2"}],"repo":"https://github.com/nerves-hub/nerves_hub_web","vendor":"nerves-hub","versions":[{"lessThan":"a96497ddd4d24ab1847f7685e255bf96fd87b85b","status":"affected","version":"b5d2438677f79d10e91aeef20a7b5cd8cca0d63c","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*","versionEndExcluding":"2.5.3","versionStartIncluding":"1.0.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Josh Kalderimis"},{"lang":"en","type":"reporter","value":"Josh Kalderimis"},{"lang":"en","type":"remediation developer","value":"Josh Kalderimis"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"dateAssigned":"2026-11-09T23:03:50.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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 <code>assign_org_to_scope</code> hook of <code>NervesHubWeb.Auth</code>, 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.</p>\n<p>The dashboard also opens consoles over <code>NervesHubWeb.UserSocket</code> 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.</p>\n<p>This issue affects nerves_hub: from 1.0.0 before 2.5.3.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nThe 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.\n\nThis issue affects nerves_hub: from 1.0.0 before 2.5.3."}],"value":"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.\n\nThe 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.\n\nThis issue affects nerves_hub: from 1.0.0 before 2.5.3."}],"impacts":[{"capecId":"CAPEC-60","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A member who is removed from an organization or given a lower role keeps their old access through whatever they had open at the time, including device consoles and local shells that run commands on the device, until the page reloads or the socket disconnects. Anyone holding the dashboard's socket token taken from a page can open consoles as that user, within that user's current permissions, for up to 24 hours after they sign out.</p>"},{"base64":false,"type":"text/markdown","value":"A member who is removed from an organization or given a lower role keeps their old access through whatever they had open at the time, including device consoles and local shells that run commands on the device, until the page reloads or the socket disconnects. Anyone holding the dashboard's socket token taken from a page can open consoles as that user, within that user's current permissions, for up to 24 hours after they sign out."}],"value":"A member who is removed from an organization or given a lower role keeps their old access through whatever they had open at the time, including device consoles and local shells that run commands on the device, until the page reloads or the socket disconnects. Anyone holding the dashboard's socket token taken from a page can open consoles as that user, within that user's current permissions, for up to 24 hours after they sign out."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1464","description":"CWE-1464 Improper Session Invalidation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1465","description":"CWE-1465 Improper Session Invalidation after User Logout","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-10T10:43:57.738Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Removing or demoting an org member doesn’t close pages and consoles they already have open","tags":["vendor-advisory","related"],"url":"https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8"},{"name":"EEF CNA record for CVE-2026-120997","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-120997.html"},{"name":"OSV record EEF-CVE-2026-120997","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120997"},{"name":"Introducing commit b5d2438 in nerves-hub/nerves_hub_web","tags":["related"],"url":"https://github.com/nerves-hub/nerves_hub_web/commit/b5d2438677f79d10e91aeef20a7b5cd8cca0d63c"},{"name":"Fix commit a96497d in nerves-hub/nerves_hub_web","tags":["patch"],"url":"https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b"}],"source":{"discovery":"UNKNOWN"},"title":"Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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 <code>SECRET_KEY_BASE</code>, which signs everyone out.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>In an organization, A is an admin and B has the manage role. B opens a device's page and its Console tab.</li>\n<li>A removes B from the organization on the organization's Users page, or lowers B's role to view.</li>\n<li>Without reloading, B's open page still carries out actions and B's console still accepts input, until B reloads the page or the socket disconnects.</li>\n<li>For the socket token: while signed in, copy the <code>data-user-token</code> attribute of the <code>#console</code> element, sign out, and within 24 hours connect a Phoenix socket client to <code>/socket/websocket</code> with that token. Joining <code>user:console:identifier-&lt;device identifier&gt;</code> succeeds.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. In an organization, A is an admin and B has the manage role. B opens a device's page and its Console tab.\n2. A removes B from the organization on the organization's Users page, or lowers B's role to view.\n3. Without reloading, B's open page still carries out actions and B's console still accepts input, until B reloads the page or the socket disconnects.\n4. For the socket token: while signed in, copy the `data-user-token` attribute of the `#console` element, sign out, and within 24 hours connect a Phoenix socket client to `/socket/websocket` with that token. Joining `user:console:identifier-<device identifier>` succeeds."}],"value":"* In an organization, A is an admin and B has the manage role. B opens a device's page and its Console tab.\n* A removes B from the organization on the organization's Users page, or lowers B's role to view.\n* Without reloading, B's open page still carries out actions and B's console still accepts input, until B reloads the page or the socket disconnects.\n* For the socket token: while signed in, copy the data-user-token attribute of the #console element, sign out, and within 24 hours connect a Phoenix socket client to /socket/websocket with that token. Joining user:console:identifier-<device identifier> succeeds."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-120997","datePublished":"2026-11-10T10:43:57.738Z","dateReserved":"2026-11-05T14:30:01.700Z","dateUpdated":"2026-11-10T10:43:57.738Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}