{"affected":[{"defaultStatus":"unaffected","ecosystem":"oci","packageName":"nerves-hub/nerves-hub","product":"nerves_hub_web","source":"CNA: EEF","vendor":"nerves-hub","versions":[{"lessThan":"2.5.3","status":"affected","version":"1.0.0","versionType":"other"}]},{"defaultStatus":"unaffected","ecosystem":"otp","packageName":"nerves_hub","product":"nerves_hub_web","source":"CNA: EEF","vendor":"nerves-hub","versions":[{"lessThan":"2.5.3","status":"affected","version":"1.0.0","versionType":"semver"}]},{"defaultStatus":"unaffected","ecosystem":"github","packageName":"nerves-hub/nerves_hub_web","product":"nerves_hub_web","source":"CNA: EEF","vendor":"nerves-hub","versions":[{"lessThan":"a96497ddd4d24ab1847f7685e255bf96fd87b85b","status":"affected","version":"b5d2438677f79d10e91aeef20a7b5cd8cca0d63c","versionType":"git"}]}],"cveId":"CVE-2026-120997","cwes":["CWE-1464","CWE-1465"],"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.\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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":2.3,"severity":"low","source":"CNA: EEF","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","version":"4.0"}],"modifiedAt":1794307437738,"publishedAt":1794307437738,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-120997.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120997"},{"source":"CNA: EEF","tags":["related"],"url":"https://github.com/nerves-hub/nerves_hub_web/commit/b5d2438677f79d10e91aeef20a7b5cd8cca0d63c"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"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."},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b"}],"revision":"df24e00d0d54aab7925b2b223661a3f8da426f5e79615253b0e3bdcc4fc162ad","sources":[{"modifiedAt":1794307437738,"name":"CNA: EEF","retrievedAt":1794308902944,"url":"https://www.cve.org/CVERecord?id=CVE-2026-120997"}],"ssvc":null,"status":"published","title":"Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role","updatedAt":1794308902944}