# CVE-2026-120295: Incorrect Authorization vulnerability in the devices page bulk move in nerves-hub nerves_hub_web allows an authenticated user with the manag


- **Severity:** High 7.1 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/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-120295, GHSA-2j7r-q3vm-8j34

## What is CVE-2026-120295?

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

### Official description

Incorrect Authorization vulnerability in the devices page bulk move in nerves-hub nerves_hub_web allows an authenticated user with the manage role in one organization and only the view role in another to move devices into the second organization's product via the "Move device(s) to product" action. The target-product event in NervesHubWeb.Live.Devices.Index looks the product up with NervesHub.Products.get_by_id/2, which checks that the user is a member of the product's organization at any role, and move-devices-product then changes each selected device's organization and product. The device API's move requires manage in the target organization, and an earlier fix added the check on the organization the devices leave but not on the one they enter.

A moved device keeps its key and certificate, joins the target organization's matching deployment groups, and is sent their firmware with a download URL, which the view role cannot otherwise obtain. The user cannot change or control devices that already belong to the other organization.

This issue affects nerves_hub: from 1.0.0 before 2.5.3.

Weakness: CWE-863 (Incorrect Authorization)

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


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

No fix has been published for CVE-2026-120295 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-120295 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2026-120295 is a high-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-120295 exists.

Affected product: nerves-hub nerves_hub_web. No package-level version data is available, so check the vendor advisory linked from the reference page.

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-120295/ (Markdown: https://insights.sbomify.com/CVE-2026-120295/index.md)
```

## Sources

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

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