CVE-2022-51026GHSA-5r3p-6rj5-7937
Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login
bytebase bytebaseGoLibraries & packages
CVSS
9.3CriticalExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.61%Chance of exploitation activity in the next 30 days, higher than 48% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 1.0.1bytebaseCVE List
- 1.0.1github.com/bytebase/bytebase, GoOSV
go get github.com/bytebase/bytebase@v1.0.1
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 3
- bytebaseaffected: 0.12.0 before 1.0.1CVE List
- bytebaseunaffected: 1.0.1CVE List
- github.com/bytebase/bytebase, Gofrom first release, fixed in 1.0.1OSV
References 7
- github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2dFixvia CVE List
- github.com/bytebase/bytebase/pull/834Fixvia CVE List
- github.com/bytebase/bytebase/releases/tag/1.0.1Fixvia CVE List
- github.com/bytebase/bytebase/security/advisories/GHSA-5r3p-6rj5-7937Advisoryvia CVE List
- vulncheck.com/advisories/bytebase-0.12.0-before-1.0.1-authentication-bypass-via-gitlab-self-hosted-loginAdvisoryvia CVE List
- github.com/bytebase/bytebase/blob/1.0.0/server/auth.go#L79-L93Referencevia CVE List
- github.com/bytebase/bytebaseReferencevia CVE List