{"api_version":"1","generated_at":"2026-11-05T12:02:59+00:00","cve":"CVE-2026-120263","urls":{"html":"https://cve.report/CVE-2026-120263","api":"https://cve.report/api/cve/CVE-2026-120263.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-120263","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-120263"},"summary":{"title":"Gitea OAuth2 account auto-linking takeover through the sign-up form","description":"When `[oauth2_client].ACCOUNT_LINKING` is set to `auto` (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required.","state":"PUBLISHED","assigner":"Gitea","published_at":"2026-11-01 10:18:37","updated_at":"2026-11-01 10:18:37"},"problem_types":["CWE-287","CWE-639","CWE-287 CWE-287: Improper Authentication","CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key"],"metrics":[],"references":[{"url":"https://blog.gitea.com/release-of-28.3.0/","name":"https://blog.gitea.com/release-of-28.3.0/","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/pull/40121","name":"https://github.com/go-gitea/gitea/pull/40121","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v","name":"https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.3.0","name":"https://github.com/go-gitea/gitea/releases/tag/v28.3.0","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/pull/40137","name":"https://github.com/go-gitea/gitea/pull/40137","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120263","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120263","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Gitea","product":"Gitea","version":"affected 28.3.0 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"https://github.com/adrian-doyensec","lang":"en"},{"source":"CNA","value":"https://github.com/AdamKorcz","lang":"en"},{"source":"CNA","value":"https://github.com/DshtAnger","lang":"en"},{"source":"CNA","value":"https://github.com/ivantsepp","lang":"en"},{"source":"CNA","value":"https://github.com/bircni","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"120263","cve":"CVE-2026-120263","epss":"0.001620000","percentile":"0.054030000","score_date":"2026-11-02","updated_at":"2026-11-03 00:03:08"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","packageName":"gitea.dev","product":"Gitea","vendor":"Gitea","versions":[{"lessThan":"28.3.0","status":"affected","version":"0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"https://github.com/adrian-doyensec"},{"lang":"en","type":"reporter","value":"https://github.com/AdamKorcz"},{"lang":"en","type":"reporter","value":"https://github.com/DshtAnger"},{"lang":"en","type":"reporter","value":"https://github.com/ivantsepp"},{"lang":"en","type":"remediation developer","value":"https://github.com/bircni"}],"descriptions":[{"lang":"en","value":"When `[oauth2_client].ACCOUNT_LINKING` is set to `auto` (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","description":"CWE-287: Improper Authentication","lang":"en","type":"CWE"},{"cweId":"CWE-639","description":"CWE-639: Authorization Bypass Through User-Controlled Key","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-01T09:47:09.191Z","orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","shortName":"Gitea"},"references":[{"name":"GitHub Security Advisory GHSA-8p3x-w464-4g6v","tags":["vendor-advisory"],"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v"},{"name":"Fix: go-gitea/gitea pull request #40121","tags":["patch"],"url":"https://github.com/go-gitea/gitea/pull/40121"},{"name":"Fix backport to release/v28: go-gitea/gitea pull request #40137","tags":["patch"],"url":"https://github.com/go-gitea/gitea/pull/40137"},{"name":"Gitea 28.3.0 release announcement","tags":["release-notes"],"url":"https://blog.gitea.com/release-of-28.3.0/"},{"name":"go-gitea/gitea v28.3.0 release","tags":["release-notes"],"url":"https://github.com/go-gitea/gitea/releases/tag/v28.3.0"}],"title":"Gitea OAuth2 account auto-linking takeover through the sign-up form"}},"cveMetadata":{"assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","assignerShortName":"Gitea","cveId":"CVE-2026-120263","datePublished":"2026-11-01T09:47:09.191Z","dateReserved":"2026-11-01T08:48:41.149Z","dateUpdated":"2026-11-01T09:47:09.191Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-01 10:18:37","lastModifiedDate":"2026-11-01 10:18:37","problem_types":["CWE-287","CWE-639","CWE-287 CWE-287: Improper Authentication","CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"120263","Ordinal":"1","Title":"Gitea OAuth2 account auto-linking takeover through the sign-up f","CVE":"CVE-2026-120263","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"120263","Ordinal":"1","NoteData":"When `[oauth2_client].ACCOUNT_LINKING` is set to `auto` (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required.","Type":"Description","Title":"Gitea OAuth2 account auto-linking takeover through the sign-up f"}]}}}