# CVE-2026-120997: Improper Session Invalidation vulnerability in the dashboard pages, device console and local shell channels in nerves-hub nerves_hub_web all


- **Severity:** Low 2.3 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 10 Nov 2026
- **Updated:** 12 Nov 2026
- **Also known as:** EEF-CVE-2026-120997, GHSA-c7jf-qcx9-xxf8

## What is CVE-2026-120997?

CVE-2026-120997 is a low-severity vulnerability in nerves-hub nerves_hub_web, published on 10 Nov 2026. 

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

Weakness: CWE-1465 (Improper Session Invalidation after User Logout), CWE-1464 (Improper Session Invalidation)

## Which versions are affected by CVE-2026-120997?

2 open source packages ship an affected version, including nerves-hub/nerves-hub and nerves_hub. It affects 1 product.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `nerves-hub/nerves-hub` | oci | `pkg:oci/nerves-hub?repository_url=ghcr.io/nerves-hub/nerves-hub` | From 1.0.0 | 2.5.3 |
| `nerves_hub` | otp | `pkg:otp/nerves_hub?repository_url=https://github.com/nerves-hub/nerves_hub_web` | From 1.0.0 | 2.5.3 |

Products: Nerves-Hub Nerves Hub Web.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*` from 1.0.0 before 2.5.3

## How do I fix CVE-2026-120997?

Upgrade nerves-hub/nerves-hub to 2.5.3 or later.

## Is CVE-2026-120997 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-120997 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-120997 and fix it if it is affected.

What it is: CVE-2026-120997 is a low-severity vulnerability in nerves-hub nerves_hub_web, published on 10 Nov 2026. 
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-120997 exists.

Affected packages and fixed versions:
- nerves-hub/nerves-hub (oci): affected from 1.0.0; fixed in 2.5.3
- nerves_hub (otp): affected from 1.0.0; fixed in 2.5.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-120997/ (Markdown: https://insights.sbomify.com/CVE-2026-120997/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-120997
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-120997
- OSV: https://osv.dev/vulnerability/CVE-2026-120997

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-120997/
Summaries are generated and may contain mistakes; the official description above is the record.
