{"answers":{"affected":"2 open source packages ship an affected version, including nerves-hub/nerves-hub and nerves_hub. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-120997 exists.","exposure":"","fix":"Upgrade nerves-hub/nerves-hub to 2.5.3 or later.","what":"CVE-2026-120997 is a low-severity vulnerability in nerves-hub nerves_hub_web, published on 10 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-120997 and fix it if it is affected.\n\nWhat it is: CVE-2026-120997 is a low-severity vulnerability in nerves-hub nerves_hub_web, published on 10 Nov 2026. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-120997 exists.\n\nAffected packages and fixed versions:\n- nerves-hub/nerves-hub (oci): affected from 1.0.0; fixed in 2.5.3\n- nerves_hub (otp): affected from 1.0.0; fixed in 2.5.3\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-120997/ (Markdown: https://insights.sbomify.com/CVE-2026-120997/index.md)","id":"CVE-2026-120997","markdown":"https://insights.sbomify.com/CVE-2026-120997/index.md","name":"CVE-2026-120997","record":{"aliases":["EEF-CVE-2026-120997","GHSA-c7jf-qcx9-xxf8"],"analysis":null,"analysis_generated_by":null,"assigner":"EEF","cpe":[{"criteria":[{"cpe":"cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*","source":"cna","version_end_excluding":"2.5.3","version_start_including":"1.0.0"}],"n_criteria":1,"name":null,"product":"nerves_hub_web","vendor":"nerves-hub"}],"cvss":{"score":2.3,"severity":"low","source":"cna","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"},"cwes":[{"id":"CWE-1465","name":"Improper Session Invalidation after User Logout"},{"id":"CWE-1464","name":"Improper Session Invalidation"}],"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.","ecosystems":["oci","otp"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Improper Session Invalidation vulnerability in the dashboard pages, device console and local shell channels in nerves-hub nerves_hub_web all","id":"CVE-2026-120997","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":5,"n_vendor_status":0,"next":{"headline":"Improper Authentication vulnerability in Google sign-in and email confirmation in nerves-hub nerves_hub_web allows an attacker who registers","id":"CVE-2026-120999"},"nickname":null,"packages":[{"ecosystem":"oci","fixed":["2.5.3"],"introduced":["1.0.0"],"last_affected":[],"name_kind":null,"package":"nerves-hub/nerves-hub","purl":"pkg:oci/nerves-hub?repository_url=ghcr.io/nerves-hub/nerves-hub","purl_source":"cna","scope":"upstream","source":"CVE-2026-120997"},{"ecosystem":"otp","fixed":["2.5.3"],"introduced":["1.0.0"],"last_affected":[],"name_kind":null,"package":"nerves_hub","purl":"pkg:otp/nerves_hub?repository_url=https://github.com/nerves-hub/nerves_hub_web","purl_source":"cna","scope":"upstream","source":"CVE-2026-120997"}],"prev":{"headline":"NGINX ngx_stream_ssl_module vulnerability","id":"CVE-2026-120993"},"products":["nerves_hub_web"],"published":"2026-11-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-11-12","vendor_status":[],"vendors":["nerves-hub"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-120997/"}