# CVE-2026-119446 - Session fixation in the CLI login flow allows an unauthenticated attacker to obtain a user's API token

DevFeed: [CVE-2026-119446 - Session fixation in the CLI login flow allows an unauthenticated attacker to obtain a user's API token](<https://devfeed.tech/articles/cve-2026-119446-session-fixation-in-the-cli-login-flow-allows-an-unauthenticated-attacker-to-obtain-a-user-s-api-token-125787.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-119446>)

Author: cvefeed.io

Published: 2026-11-10T11:16:40Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Credential theft](<https://devfeed.tech/topics/credential-theft.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>), [personal access token](<https://devfeed.tech/topics/personal-access-token.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [account](<https://devfeed.tech/tags/account.md>), [api](<https://devfeed.tech/tags/api.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [button](<https://devfeed.tech/tags/button.md>), [cli](<https://devfeed.tech/tags/cli.md>), [click](<https://devfeed.tech/tags/click.md>), [code](<https://devfeed.tech/tags/code.md>), [csrf](<https://devfeed.tech/tags/csrf.md>), [csrf-token](<https://devfeed.tech/tags/csrf-token.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-119446](<https://devfeed.tech/tags/cve-2026-119446.md>), [flow](<https://devfeed.tech/tags/flow.md>), [form](<https://devfeed.tech/tags/form.md>), [hub](<https://devfeed.tech/tags/hub.md>), [issue](<https://devfeed.tech/tags/issue.md>), [login](<https://devfeed.tech/tags/login.md>), [nerves-hub](<https://devfeed.tech/tags/nerves-hub.md>), [nerves-hub-web](<https://devfeed.tech/tags/nerves-hub-web.md>), [nerveshub](<https://devfeed.tech/tags/nerveshub.md>), [token](<https://devfeed.tech/tags/token.md>), [user](<https://devfeed.tech/tags/user.md>)

## AI overview

An unauthenticated attacker can obtain a signed-in NervesHub user's API token by persuading them to open a crafted CLI login confirmation link and click Confirm. The unauthenticated POST /api/auth/cli_session returns a polling token and confirmation URL; confirmation creates and stores an API token for the user, which the login initiator can retrieve on the next poll. The displayed confirmation code is never checked, so it does not verify who initiated the login. CSRF protection and the page's framing restriction mean the user must open the link and click themselves. The excerpt says nerves_hub versions from 2.5.0 up to, but not including, 2.5.3 are affected.

## Source excerpt

CVE ID :CVE-2026-119446 Published : Nov. 10, 2026, 11:16 a.m. | 1 hour, 14 minutes ago 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/ returns it to whoever started the login. The 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. This issue affects nerves_hub: from 2.5.0 before 2.5.3. Severity: 9.4 | CRITICAL Visit the link for more details, such as CVSS details, affected products, timeline, and more...