{"id":"CVE-2026-84313","kind":"vulnerability","aliases":["CVE-2026-84313","GHSA-gfrc-g87h-7h5w","GO-2026-6786"],"related":[],"title":"TOTP / passkey enrolment requires no re-authentication, enabling persistent account takeover in github.com/0xJacky/Nginx-UI","description":"Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, POST /api/otp_enroll and POST /api/finish_passkey_register are registered outside RequireSecureSession and accept a normal authenticated session without verifying the current password. An attacker with a stolen JWT can bind an attacker-controlled TOTP secret when the victim has not already enabled TOTP, or can register an attacker-controlled passkey because that path has no equivalent existing-enrollment guard. These changes create persistent account access that can survive a password change and interfere with the legitimate user's authentication. This issue is fixed in version 2.4.1.","summary":"Nginx UI, a web interface for managing Nginx, lets any holder of a valid login session bind an attacker-controlled TOTP secret or passkey to the account without re-entering the password. An attacker with a stolen JWT gets persistent account access that survives a password change.","severity":"high","cvss":8.8,"epss":0.00428,"exploited":false,"exploited_at":null,"products":[{"name":"github.com/0xJacky/Nginx-UI","fixed":[],"affected":"all versions","ecosystem":"go"}],"ecosystems":["go"],"tags":["go","nginx-ui","package","self-hosted"],"not_affected_if":["version-2.4.1-or-later"],"how_to_check":"Check the Go module version of github.com/0xJacky/Nginx-UI in your go.mod or the running binary; anything below 2.4.1 is affected.","fix":"Upgrade github.com/0xJacky/Nginx-UI to 2.4.1 or later.\nAfter upgrading, review TOTP and passkey entries on user accounts for ones you did not add, and rotate JWT secrets if a token may have been stolen.","status":"open","published_at":"2026-10-12T21:17:21+00:00","first_seen_at":"2026-10-23T19:13:08+00:00","triaged_at":"2026-10-23T19:51:20+00:00","updated_at":"2026-10-23T19:51:20+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-23T19:51:20Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade github.com/0xJacky/Nginx-UI to 2.4.1 or later.\nAfter upgrading, review TOTP and passkey entries on user accounts for ones you did not add, and rotate JWT secrets if a token may have been stolen.","summary":"Nginx UI, a web interface for managing Nginx, lets any holder of a valid login session bind an attacker-controlled TOTP secret or passkey to the account without re-entering the password. An attacker with a stolen JWT gets persistent account access that survives a password change.","category":"package","who_cares":["go","nginx-ui","self-hosted"],"confidence":0.8,"analyst_note":"Sources do not say whether JWT rotation invalidates attacker-added TOTP or passkeys; check the 2.4.1 release notes or GHSA-gfrc-g87h-7h5w at https://pkg.go.dev/vuln/GO-2026-6786.","how_to_check":"Check the Go module version of github.com/0xJacky/Nginx-UI in your go.mod or the running binary; anything below 2.4.1 is affected.\nunknown","needs_analyst":true,"not_affected_if":["version-2.4.1-or-later"],"severity_if_unknown":"high"},"cost_usd":0.000442,"input_tokens":2267,"output_tokens":430,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':18A,26A,29A '-6786':27A '-84313':19A,30A '/0xjacky/nginx-ui':16A,33A '/api/finish_passkey_register':110C '/api/otp_enroll':107C '2.4.1':105C,192C '7h5w':24A 'accept':116C 'access':85B,171C 'account':11A,69B,84B,170C 'alreadi':145C 'attack':61B,77B,127C,136C,153C 'attacker-control':60B,135C,152C 'authent':8A,119C,185C 'bind':58B,133C 'chang':90B,167C,177C 'control':62B,137C,154C 'creat':168C 'current':124C 'cve':17A,28A 'enabl':9A,146C 'enrol':3A,164C 'enter':73B 'equival':161C 'exist':163C 'existing-enrol':162C 'fix':189C 'g87h':23A 'get':82B 'gfrc':22A 'ghsa':21A 'ghsa-gfrc-g87h-7h5w':20A 'github.com':15A,32A 'github.com/0xjacky/nginx-ui':14A,31A 'go':25A,34B 'guard':165C 'holder':52B 'host':41B 'interfac':46B,97C 'interfer':179C 'issu':187C 'jwt':81B,131C 'legitim':182C 'let':50B 'login':56B 'manag':48B 'nginx':36B,42B,49B,91C,100C 'nginx-ui':35B 'normal':118C 'outsid':113C 'packag':38B 'passkey':2A,66B,155C 'password':75B,89B,125C,176C 'path':158C 'persist':10A,83B,169C 'post':106C,109C 'prior':103C 're':7A,72B 're-authent':6A 're-ent':71B 'regist':112C,150C 'requir':4A 'requiresecuresess':114C 'secret':64B,139C 'self':40B 'self-host':39B 'server':102C 'session':57B,120C 'stolen':80B,130C 'surviv':87B,174C 'takeov':12A 'totp':1A,63B,138C,147C 'ui':37B,43B,92C 'user':96C,183C 'valid':55B 'verifi':122C 'version':191C 'victim':142C 'web':45B,95C,101C 'without':70B,121C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-12T21:17:21+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"govuln","external_id":"GO-2026-6786","url":"https://pkg.go.dev/vuln/GO-2026-6786","severity":null,"published_at":"2026-10-19T21:08:39+00:00","modified_at":"2026-10-19T21:08:39+00:00","first_seen_at":"2026-10-23T19:13:08+00:00","fetched_at":"2026-10-23T19:13:08+00:00","note":null},{"source":"epss","external_id":"CVE-2026-84313","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-84313","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-23T19:13:43+00:00","fetched_at":"2026-10-23T19:13:43+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-84313","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84313","severity":null,"published_at":"2026-10-12T21:17:21+00:00","modified_at":"2026-10-15T14:17:29+00:00","first_seen_at":"2026-10-23T19:35:23+00:00","fetched_at":"2026-10-23T19:35:23+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}