{"id":"CVE-2026-119446","kind":"vulnerability","aliases":["CVE-2026-119446"],"related":[],"title":"NervesHub: CLI login flaw lets an attacker take a user's API token","description":"Session Fixation vulnerability in the CLI login flow in nerves-hub nerves_hub_web allows an unauthenticated attacker to obtain an API token for another user's account via a crafted login link. Starting a CLI login with POST /api/auth/cli_session needs no authentication and returns a polling token, a confirmation URL that carries that token, and a confirmation code. When a signed-in user opens that URL and clicks Confirm, NervesHub.Accounts.verify_cli_session_token/2 creates an API token for the user's account and stores it on the login, and the next poll of GET /api/auth/cli_session/<token> returns it to whoever started the login.\n\nThe confirmation code is only displayed and is never compared with anything, so it cannot show that the person confirming is the one who started the login. The confirm form carries a CSRF token and the page cannot be framed, so the attacker has to persuade the user to open the link and click the button themselves.\n\nThis issue affects nerves_hub: from 2.5.0 before 2.5.3.","summary":"NervesHub's CLI login flow lets an unauthenticated attacker start a login and receive an API token for another user's account once that user clicks Confirm on a crafted link. The confirmation code is shown but never checked, so the attacker gets full access to the victim's account.","severity":"critical","cvss":9.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["elixir","nerves-hub","nerves_hub","package","self-hosted"],"not_affected_if":["managed-hosting","version-2.5.3-or-later","version-below-2.5.0"],"how_to_check":"- Check the deployed `nerves_hub` version in the release or `mix.exs`; affected releases are from `2.5.0` before `2.5.3`.\n- Look for the `POST /api/auth/cli_session` endpoint on your NervesHub web deployment.","fix":"- `nerves_hub` `2.5.3` or later (the sources state the fix is in 2.5.3 and later).","status":"open","published_at":"2026-11-10T11:16:40+00:00","first_seen_at":"2026-11-10T11:21:35+00:00","triaged_at":"2026-11-10T11:21:58+00:00","updated_at":"2026-11-10T11:21:58+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-10T11:21:58Z","model":"claude-haiku-5-5","output":{"fix":"- `nerves_hub` `2.5.3` or later (the sources state the fix is in 2.5.3 and later).","reach":"internet","title":"NervesHub: CLI login flaw lets an attacker take a user's API token","impact":"high","summary":"NervesHub's CLI login flow lets an unauthenticated attacker start a login and receive an API token for another user's account once that user clicks Confirm on a crafted link. The confirmation code is shown but never checked, so the attacker gets full access to the victim's account.","audience":"businesses","category":"package","nicknames":[],"who_cares":["nerves-hub","nerves_hub","self-hosted","elixir"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"attacker gets an API token for another user's account","analyst_note":"","how_to_check":"- Check the deployed `nerves_hub` version in the release or `mix.exs`; affected releases are from `2.5.0` before `2.5.3`.\n- Look for the `POST /api/auth/cli_session` endpoint on your NervesHub web deployment.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-below-2.5.0","version-2.5.3-or-later","managed-hosting"],"who_is_affected":"Teams running a self-hosted NervesHub web server from 2.5.0 up to but not including 2.5.3 are exposed, because the CLI login endpoint is reachable without authentication. The attack needs a signed-in user to open a crafted link and click Confirm, so deployments that only the team uses internally still carry risk if users are tricked. Managed or vendor-hosted NervesHub instances are handled by their operator.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.000792,"input_tokens":4838,"output_tokens":617,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-119446':16A,19A '-2026':15A,18A '/api/auth/cli_session':120C,177C '2.5.0':248C '2.5.3':250C 'access':74B 'account':51B,79B,108C,164C 'affect':244C 'allow':95C 'anoth':48B,105C 'anyth':196C 'api':12A,45B,102C,158C 'attack':7A,38B,71B,98C,227C 'authent':123C 'button':240C 'cannot':199C,222C 'carri':133C,215C 'check':68B 'cli':2A,32B,85C,116C,153C 'click':55B,150C,238C 'code':63B,139C,187C 'compar':194C 'confirm':56B,62B,130C,138C,151C,186C,204C,213C 'craft':59B,111C 'creat':156C 'csrf':217C 'cve':14A,17A 'display':190C 'elixir':20B 'fixat':81C 'flaw':4A 'flow':34B,87C 'form':214C 'frame':224C 'full':73B 'get':72B,176C 'host':29B 'hub':23B,25B,91C,93C,246C 'issu':243C 'let':5A,35B 'link':60B,113C,236C 'login':3A,33B,41B,86C,112C,117C,170C,184C,211C 'need':121C 'nerv':22B,24B,90C,92C,245C 'nerves-hub':21B,89C 'nerveshub':1A,30B 'nerveshub.accounts.verify':152C 'never':67B,193C 'next':173C 'obtain':100C 'one':207C 'open':146C,234C 'packag':26B 'page':221C 'person':203C 'persuad':230C 'poll':127C,174C 'post':119C 'receiv':43B 'return':125C,178C 'self':28B 'self-host':27B 'session':80C,154C 'show':200C 'shown':65B 'sign':143C 'signed-in':142C 'start':39B,114C,182C,209C 'store':166C 'take':8A 'token':13A,46B,103C,128C,135C,159C,218C 'token/2':155C 'unauthent':37B,97C 'url':131C,148C 'user':10A,49B,54B,106C,145C,162C,232C 'via':109C 'victim':77B 'vulner':82C 'web':94C 'whoever':181C","nicknames":[],"mitigations":[],"who_affected":"Teams running a self-hosted NervesHub web server from 2.5.0 up to but not including 2.5.3 are exposed, because the CLI login endpoint is reachable without authentication. The attack needs a signed-in user to open a crafted link and click Confirm, so deployments that only the team uses internally still carry risk if users are tricked. Managed or vendor-hosted NervesHub instances are handled by their operator.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["critical","elixir","nerveshub","package","selfhosted"],"campaign_type":null,"search_a":"'-119446':16A,19A '-2026':15A,18A 'api':12A 'attack':7A 'cli':2A 'cve':14A,17A 'flaw':4A 'let':5A 'login':3A 'nerveshub':1A 'take':8A 'token':13A 'user':10A","search_b":"'access':74B 'account':51B,79B 'anoth':48B 'api':45B 'attack':38B,71B 'check':68B 'cli':32B 'click':55B 'code':63B 'confirm':56B,62B 'craft':59B 'elixir':20B 'flow':34B 'full':73B 'get':72B 'host':29B 'hub':23B,25B 'let':35B 'link':60B 'login':33B,41B 'nerv':22B,24B 'nerves-hub':21B 'nerveshub':30B 'never':67B 'packag':26B 'receiv':43B 'self':28B 'self-host':27B 'shown':65B 'start':39B 'token':46B 'unauthent':37B 'user':49B,54B 'victim':77B","search_c":"'/api/auth/cli_session':120C,177C '2.5.0':248C '2.5.3':250C 'account':108C,164C 'affect':244C 'allow':95C 'anoth':105C 'anyth':196C 'api':102C,158C 'attack':98C,227C 'authent':123C 'button':240C 'cannot':199C,222C 'carri':133C,215C 'cli':85C,116C,153C 'click':150C,238C 'code':139C,187C 'compar':194C 'confirm':130C,138C,151C,186C,204C,213C 'craft':111C 'creat':156C 'csrf':217C 'display':190C 'fixat':81C 'flow':87C 'form':214C 'frame':224C 'get':176C 'hub':91C,93C,246C 'issu':243C 'link':113C,236C 'login':86C,112C,117C,170C,184C,211C 'need':121C 'nerv':90C,92C,245C 'nerves-hub':89C 'nerveshub.accounts.verify':152C 'never':193C 'next':173C 'obtain':100C 'one':207C 'open':146C,234C 'page':221C 'person':203C 'persuad':230C 'poll':127C,174C 'post':119C 'return':125C,178C 'session':80C,154C 'show':200C 'sign':143C 'signed-in':142C 'start':114C,182C,209C 'store':166C 'token':103C,128C,135C,159C,218C 'token/2':155C 'unauthent':97C 'url':131C,148C 'user':106C,145C,162C,232C 'via':109C 'vulner':82C 'web':94C 'whoever':181C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-10T10:38:42+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-119446","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119446","severity":null,"published_at":"2026-11-10T11:16:40+00:00","modified_at":"2026-11-10T11:16:40+00:00","first_seen_at":"2026-11-10T11:21:35+00:00","fetched_at":"2026-11-10T11:21:35+00:00","note":null}],"documents":[{"id":114603,"url":"https://github.com/nerves-hub/nerves_hub_web/commit/3131f1701194b581ab4b3e5e9d81194fc9c83508","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":114604,"url":"https://github.com/nerves-hub/nerves_hub_web/commit/e6bf11a812d7aa8b69d854ba8ef02d65516f5564","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":114605,"url":"https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-9vr9-463q-46qp","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-10T10:38:42+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}