# CVE-2026-120997: Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role

- Severity: Low 2.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-10T10:43:57.738Z
- Modified: 2026-11-25T06:30:19.138Z
- Also known as: EEF-CVE-2026-120997, GHSA-c7jf-qcx9-xxf8
- Weaknesses: CWE-1464, CWE-1465
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- nerves-hub/nerves-hub: from 1.0.0 before 2.5.3
- nerves_hub: from 1.0.0 before 2.5.3
- nerves-hub/nerves_hub_web: from b5d2438677f79d10e91aeef20a7b5cd8cca0d63c before a96497ddd4d24ab1847f7685e255bf96fd87b85b
- https://github.com/nerves-hub/nerves_hub_web: from b5d2438677f79d10e91aeef20a7b5cd8cca0d63c before a96497ddd4d24ab1847f7685e255bf96fd87b85b

## Every score

- EEF: CVSS:4.0 2.3 Low `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-120997.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-120997> (related)
- <https://github.com/nerves-hub/nerves_hub_web/commit/b5d2438677f79d10e91aeef20a7b5cd8cca0d63c> (related, web)
- <https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b> (fix, patch)

## Sources

- CVE List: [CVE-2026-120997](https://www.cve.org/CVERecord?id=CVE-2026-120997), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-120997](https://osv.dev/vulnerability/EEF-CVE-2026-120997), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-120997](https://nvd.nist.gov/vuln/detail/CVE-2026-120997), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-120997 · Whole record: https://cve.day/CVE-2026-120997.json · Rebuilt by cve.day 2026-11-25T22:59:49.738Z
