{"id":"CVE-2022-51026","aliases":["EUVD-2022-56076","GHSA-5r3p-6rj5-7937","GHSA-ffpw-wpwq-rh9j"],"status":"published","title":"Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login","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.","severity":{"version":"4.0","score":9.3,"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","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00613,"percentile":0.49812,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287","CWE-290"],"published":"2026-03-02T17:32:24Z","modified":"2026-10-30T02:30:47Z","fixes":[{"ecosystem":"Go","package":"github.com/bytebase/bytebase","fixed_in":["1.0.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/bytebase/bytebase","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/bytebase/bytebase","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]}],"products":[{"vendor":"bytebase","product":"bytebase"}],"references":[{"url":"https://github.com/bytebase/bytebase/security/advisories/GHSA-5r3p-6rj5-7937","tags":["vendor-advisory","advisory","web"]},{"url":"https://github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2d","tags":["patch","fix"]},{"url":"https://github.com/bytebase/bytebase/pull/834","tags":["patch","issue-tracking","fix"]},{"url":"https://github.com/bytebase/bytebase/blob/1.0.0/server/auth.go#L79-L93","tags":["technical-description","article"]},{"url":"https://github.com/bytebase/bytebase/releases/tag/1.0.1","tags":["release-notes","advisory"]},{"url":"https://github.com/bytebase/bytebase","tags":["product","package"]},{"url":"https://www.vulncheck.com/advisories/bytebase-0.12.0-before-1.0.1-authentication-bypass-via-gitlab-self-hosted-login","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/bytebase/bytebase/commit/a578ed58e478ba5c2dadf8d538ec5c3d39c28461","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5r3p-6rj5-7937"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51026","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ffpw-wpwq-rh9j"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51026.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-51026","title":"Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login","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.","status":"published","published":"2026-10-22T19:13:18.259Z","modified":"2026-10-29T02:24:08.646Z","cvss":[{"version":"4.0","score":9.3,"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","level":"critical","assessor":"cna"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-290"],"updated_at":"2026-11-02T14:34:27.327929Z"}],"euvd":[{"id":"EUVD-2022-56076","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.","status":"published","published":"2026-10-22T19:13:18Z","modified":"2026-10-29T02:24:08Z","cvss":[{"version":"4.0","score":9.3,"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","level":"critical"}],"updated_at":"2026-11-02T16:59:18.059516Z"}],"ghsa":[{"id":"GHSA-5r3p-6rj5-7937","title":"Bytebase vulnerable to Improper Authentication","description":"### Impact\n- GitLab login allows login by any user.\n- JWT auth token can be derived as long as the server isn't rebooted.\n- Developers can assign issues to non-admin/DBA users.","status":"published","published":"2026-03-02T17:32:24Z","modified":"2026-03-02T17:32:29Z","cvss":[{"version":"4.0","score":6.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","level":"medium"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T14:39:30.031684Z"},{"id":"GHSA-ffpw-wpwq-rh9j","title":"Bytebase 0.12.0 before 1.0.1 contains an authentication bypass vulnerability that allows...","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.","status":"published","published":"2026-10-22T21:32:35Z","modified":"2026-10-22T21:32:43Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-290"],"updated_at":"2026-11-02T15:14:17.600276Z"}],"nvd":[{"id":"CVE-2022-51026","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.","status":"published","published":"2026-10-22T19:17:30.883Z","modified":"2026-10-29T04:18:19.897Z","cvss":[{"version":"4.0","score":9.3,"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","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-290"],"updated_at":"2026-11-02T14:07:43.752276Z"}],"osv":[{"id":"CVE-2022-51026","title":"Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login","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.","status":"published","published":"2026-10-22T19:13:18.259Z","modified":"2026-10-30T02:30:47.336415394Z","cvss":[{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-290"],"updated_at":"2026-11-02T15:44:29.084154Z"},{"id":"GHSA-5r3p-6rj5-7937","title":"Bytebase vulnerable to Improper Authentication","description":"### Impact\n- GitLab login allows login by any user.\n- JWT auth token can be derived as long as the server isn't rebooted.\n- Developers can assign issues to non-admin/DBA users.","status":"published","published":"2026-03-02T17:32:24Z","modified":"2026-10-23T10:55:57.079312361Z","cvss":[{"version":"4.0","score":6.6,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","level":"medium"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T15:46:38.553953Z"}]}}
