{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.12.0"
                  },
                  {
                    "fixed": "1.0.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "d69e682243b25b51dd52912a26e2f259b5f3db2d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.0.1",
                "range": [
                  {
                    "fixed": "b0163131d4c4701fbfced0cdd8150f049cd1adba"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "cb5c5e6fd78046da39fc224975c15180fc72a20f"
            },
            {
              "fixed": "b0163131d4c4701fbfced0cdd8150f049cd1adba"
            },
            {
              "fixed": "d69e682243b25b51dd52912a26e2f259b5f3db2d"
            }
          ],
          "repo": "https://github.com/bytebase/bytebase",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5r3p-6rj5-7937"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-290"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51026.json"
  },
  "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.",
  "id": "CVE-2022-51026",
  "modified": "2026-10-30T02:30:47.336415394Z",
  "published": "2026-10-22T19:13:18.259Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51026.json"
    },
    {
      "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": "FIX",
      "url": "https://github.com/bytebase/bytebase/commit/d69e682243b25b51dd52912a26e2f259b5f3db2d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bytebase/bytebase/pull/834"
    },
    {
      "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login"
}