{"id":"CVE-2022-51026","aliases":["GHSA-5r3p-6rj5-7937"],"url":"https://o3.security/vulnerability/CVE-2022-51026","summary":"Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login","details":"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.","published":"2026-10-22T19:13:18.259Z","modified":"2026-10-23T10:45:10.240023372Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/bytebase/bytebase","fixedVersion":"1.0.1"}],"fix":{"url":"https://github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2d","label":"bytebase/bytebase@d69e682"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51026.json"},{"type":"PACKAGE","url":"https://github.com/bytebase/bytebase"},{"type":"ARTICLE","url":"https://github.com/bytebase/bytebase/blob/1.0.0/server/auth.go#L79-L93"},{"type":"FIX","url":"https://github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2d"},{"type":"FIX","url":"https://github.com/bytebase/bytebase/pull/834"},{"type":"ADVISORY","url":"https://github.com/bytebase/bytebase/releases/tag/1.0.1"},{"type":"ADVISORY","url":"https://github.com/bytebase/bytebase/security/advisories/GHSA-5r3p-6rj5-7937"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51026"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bytebase-0.12.0-before-1.0.1-authentication-bypass-via-gitlab-self-hosted-login"},{"type":"WEB","url":"https://github.com/bytebase/bytebase/commit/a578ed58e478ba5c2dadf8d538ec5c3d39c28461"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-23T10:45:10.240023372Z"}}