CVE-2026-120997
Improper session invalidation keeps removed or demoted members' open pages and device consoles working at their old role
Check your servers for CVE-2026-120997
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-120997 affects nerves_hub, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity low, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.43%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 39.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 12 Nov 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
nerves_hub_web
package
nerves-hub/nerves-hub |
affected from 1.0.0, before 2.5.3
Other versions: unaffected
|
|
nerves_hub_web
package
nerves_hub |
affected from 1.0.0, before 2.5.3
Other versions: unaffected
|
|
nerves_hub_web
package
nerves-hub/nerves_hub_web |
affected from b5d2438677f79d10e91aeef20a7b5cd8cca0d63c, before a96497ddd4d24ab1847f7685e255bf96fd87b85b
Other versions: unaffected
|
Is my server affected?
Find the installed version of nerves_hub and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i nerves_hub
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-120997 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-120997RHEL, Rocky, Alma, Fedora
rpm -q nerves_hub
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-120997Alpine
apk list --installed | grep -i nerves_hubWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-120997
trivy image --scanners vuln IMAGE | grep CVE-2026-120997
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit a96497d in nerves-hub/nerves_hub_web github.com · patch
Exploits and proof of concept
- Removing or demoting an org member doesn’t close pages and consoles they already have open github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-120997 cna.erlef.org · related
- OSV record EEF-CVE-2026-120997 osv.dev · related
- Introducing commit b5d2438 in nerves-hub/nerves_hub_web github.com · related
Source: the record CVE-2026-120997 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse