Vulnerability
CVE-2026-37977
A flaw was found in Keycloak. A remote attacker can exploit a Cross-Origin Resource Sharing (CORS) header injection vulnerability in Keycloak's User-Managed Access (UMA) token endpoint. This flaw occurs because the `azp` claim from a client-supplied JSON Web Token (JWT) is used to set the `Access-Control-Allow-Origin` header before the JWT signature is validated. When a specially crafted JWT with an attacker-controlled `azp` value is processed, this value is reflected as the CORS origin, even if the grant is later rejected. This can lead to the exposure of low-sensitivity information from authorization server error responses, weakening origin isolation, but only when a target client is misconfigured with `webOrigins: ["*"]`.
29 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-3q98-wxjq-pqww
- CGA-3r94-mq58-rh7j
- CGA-3v6m-fhjf-xhf5
- CGA-4qxq-r9h4-9r3j
- CGA-7cgg-rvq3-qjm7
- CGA-8g8w-jm8f-hpwh
- CGA-8v52-m78h-394x
- CGA-98c7-qhp4-g855
- CGA-c6pr-892g-mvf8
- CGA-fgxq-wgjw-6wf8
- CGA-fw8j-hvfj-pxj4
- CGA-mcvg-6crm-6hhh
- CGA-mfm9-29gm-8rf8
- CGA-mm49-7mp9-f699
- CGA-mqhx-5vpw-chh7
- CGA-qpmc-q2g8-g44p
- CGA-qqv3-w5gq-j92x
- CGA-qrpx-h9m7-934q
- CGA-r5qv-cc28-j96j
- CGA-v539-xvq2-3rr3
- CGA-vrfj-224x-mpf3
- CGA-x4vc-r8x2-jx76
- CGA-x592-j6rp-7p29
- CGA-x79v-g675-7j9q
- CGA-x8f7-m9rm-4g7c
- CGA-x978-p6fp-458v
- CGA-xfm3-vg7p-8v46
- CGA-xq2q-rfv9-32x7
-
GHSA-5v8v-xvjv-57x7
Keycloak vulnerable to information disclosure via CORS header injection due to unvalidated JWT azp claim