{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-48228","id":"CVE-2023-48228","title":"OAuth2: PKCE can be fully circumvented","description":"authentik is an open-source identity provider. When initialising a oauth2 flow with a `code_challenge` and `code_method` (thus requesting PKCE), the single sign-on provider (authentik) must check if there is a matching and existing `code_verifier` during the token step. Prior to versions 2023.10.4 and 2023.8.5, authentik checks if the contents of `code_verifier` is matching only when it is provide","descriptionLong":"authentik is an open-source identity provider. When initialising a oauth2 flow with a `code_challenge` and `code_method` (thus requesting PKCE), the single sign-on provider (authentik) must check if there is a matching and existing `code_verifier` during the token step. Prior to versions 2023.10.4 and 2023.8.5, authentik checks if the contents of `code_verifier` is matching only when it is provided. When it is left out completely, authentik simply accepts the token request with out it; even when the flow was started with a `code_challenge`. authentik 2023.8.5 and 2023.10.4 fix this issue.","published":"2023-11-21T20:48:32.552Z","updated":"2026-10-28T02:30:55.574976635Z","reserved":"2023-11-13T13:25:18.481Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"}],"rating":"high","products":["goauthentik authentik"],"affectedProducts":[{"vendor":"goauthentik","product":"authentik","defaultStatus":null,"versions":[{"version":"< 2023.10.4","status":"affected"},{"version":"< 2023.8.5","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-287"],"aliases":["BIT-authentik-2023-48228","GHSA-fm34-v8xq-f2c3"],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-fm34-v8xq-f2c3","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory"]},{"url":"https://github.com/goauthentik/authentik/pull/7666","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/pull/7668","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/pull/7669","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/commit/3af77ab3821fe9c7df8055ba5eade3d1ecea03a6","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/commit/6b9afed21f7c39f171a4a445654cfe415bba37d5","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/commit/b88e39411c12e3f9e04125a7887f12354f760a14","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://github.com/goauthentik/authentik/blob/dd4e9030b4e667d3720be2feda24c08972602274/authentik/providers/oauth2/views/token.py#L225","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2023.10.4","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2023.8.5","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/48xxx/CVE-2023-48228.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48228","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01247,"epssPercentile":0.69963,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-48228","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48228","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-48228","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-48228","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}