{"id":"CVE-2022-51026","kind":"vulnerability","aliases":["CVE-2022-51026"],"related":[],"title":"Bytebase: GitLab login trusts client URL, letting attackers log in as anyone","description":"Bytebase 0.12.0 before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to log in as any user. The flaw stems from trusting client-supplied GitLab provider configuration in the POST /api/auth/login/GITLAB_SELF_HOST endpoint. Attackers can set instanceUrl to a server they control that returns an active user with a chosen email. Bytebase then issues session tokens for that principal, letting attackers impersonate existing users including the Owner or create new members.","summary":"Bytebase versions 0.12.0 before 1.0.1 accept a client-supplied GitLab instance URL on the self-hosted GitLab login endpoint. An unauthenticated attacker can point that URL at their own server, claim any user's email, and receive a session as that user, including the Owner.","severity":"critical","cvss":9.8,"epss":0.00613,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["bytebase","gitlab","package","self-hosted"],"not_affected_if":["default-config","managed-hosting"],"how_to_check":"Check the Bytebase version; a version from 0.12.0 up to but not including 1.0.1 is affected. Review logs for POST requests to /api/auth/login/GITLAB_SELF_HOST from unknown sources.","fix":"Upgrade Bytebase to 1.0.1 or later. Rotate session tokens and review member and Owner accounts for unexpected changes if the instance was exposed.","status":"open","published_at":"2026-10-22T19:17:30+00:00","first_seen_at":"2026-10-23T21:57:31+00:00","triaged_at":"2026-10-23T22:32:14+00:00","updated_at":"2026-10-24T07:15:51+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-23T22:32:14Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Bytebase to 1.0.1 or later. Rotate session tokens and review member and Owner accounts for unexpected changes if the instance was exposed.","reach":"internet","title":"Bytebase: GitLab login trusts client URL, letting attackers log in as anyone","impact":"high","summary":"Bytebase versions 0.12.0 before 1.0.1 accept a client-supplied GitLab instance URL on the self-hosted GitLab login endpoint. An unauthenticated attacker can point that URL at their own server, claim any user's email, and receive a session as that user, including the Owner.","category":"package","who_cares":["bytebase","gitlab","self-hosted"],"confidence":0.8,"needs_auth":"no","worst_case":"Attacker logs in as the Owner and takes over the whole instance.","analyst_note":"","how_to_check":"Check the Bytebase version; a version from 0.12.0 up to but not including 1.0.1 is affected. Review logs for POST requests to /api/auth/login/GITLAB_SELF_HOST from unknown sources.","needs_analyst":false,"not_affected_if":["managed-hosting","default-config"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000523,"input_tokens":3013,"output_tokens":443,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2022':14A,17A '-51026':15A,18A '/api/auth/login/gitlab_self_host':105C '0.12.0':27B,73C '1.0.1':29B,75C 'accept':30B 'activ':119C 'allow':82C 'anyon':12A 'attack':8A,48B,84C,107C,134C 'authent':78C 'bypass':79C 'bytebas':1A,19B,25B,72C,125C 'chosen':123C 'claim':57B 'client':5A,33B,97C 'client-suppli':32B,96C 'configur':101C 'contain':76C 'control':115C 'creat':142C 'cve':13A,16A 'email':61B,124C 'endpoint':45B,106C 'exist':136C 'flaw':92C 'gitlab':2A,20B,35B,43B,99C 'host':24B,42B 'imperson':135C 'includ':69B,138C 'instanc':36B 'instanceurl':110C 'issu':127C 'let':7A,133C 'log':9A,86C 'login':3A,44B 'member':144C 'new':143C 'owner':71B,140C 'packag':21B 'point':50B 'post':104C 'princip':132C 'provid':100C 'receiv':63B 'return':117C 'self':23B,41B 'self-host':22B,40B 'server':56B,113C 'session':65B,128C 'set':109C 'stem':93C 'suppli':34B,98C 'token':129C 'trust':4A,95C 'unauthent':47B,83C 'url':6A,37B,52B 'user':59B,68B,90C,120C,137C 'version':26B 'vulner':80C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-22T19:17:30+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2022-51026","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51026","severity":null,"published_at":"2026-10-22T19:17:30+00:00","modified_at":"2026-10-23T19:57:42+00:00","first_seen_at":"2026-10-23T21:57:31+00:00","fetched_at":"2026-10-23T22:29:02+00:00","note":null},{"source":"epss","external_id":"CVE-2022-51026","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-51026","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T07:15:51+00:00","fetched_at":"2026-10-25T12:38:51+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"}