{"id":"CVE-2022-51026","aliases":["CVE-2022-51026","GHSA-5r3p-6rj5-7937"],"related":[],"kind":"vulnerability","state":"published","title":"Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-03-02T17:32:24.000Z","modified":"2026-10-29T04:18:19.897Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-287","CWE-290"],"affected":[{"ranges":[{"type":"semver","introduced":"0.12.0","fixed":"1.0.1","status":"affected"},{"type":"semver","version":"1.0.1","status":"unaffected"}],"vendor":"bytebase","product":"bytebase","repo":"https://github.com/bytebase/bytebase","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Go","package":"github.com/bytebase/bytebase","purl":"pkg:golang/github.com/bytebase/bytebase","source":"ghsa"}],"references":[{"url":"https://github.com/bytebase/bytebase/security/advisories/GHSA-5r3p-6rj5-7937","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bytebase/bytebase/pull/834","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bytebase/bytebase/blob/1.0.0/server/auth.go#L79-L93","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bytebase/bytebase/releases/tag/1.0.1","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bytebase/bytebase","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"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"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bytebase/bytebase/commit/a578ed58e478ba5c2dadf8d538ec5c3d39c28461","tags":["web"],"sources":["ghsa"]}],"credits":["leediay153 from Viettel Post"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-29T02:23:56.225Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-51026","url":"https://www.cve.org/CVERecord?id=CVE-2022-51026","licence":"CVE Terms of Use","modified":"2026-10-29T02:24:08.646Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5r3p-6rj5-7937","url":"https://github.com/advisories/GHSA-5r3p-6rj5-7937","licence":"CC-BY-4.0","modified":"2026-10-23T10:55:57.079Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-51026","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51026","licence":"Public domain","modified":"2026-10-29T04:18:19.897Z"}],"updatedAt":"2026-11-25T22:58:21.459Z","epss":{"score":0.00723,"percentile":0.55226,"date":"2026-12-01T12:00:22.000Z"}}