3.7low
Keycloak: org.keycloak.protocol.oidc.grants.ciba: keycloak: information disclosure via cors header injection due to unvalidated jwt azp claim
- Severity
- 3.7low CVSS:3.1 by redhat
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-5v8v-xvjv-57x7
Description
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: ["*"]`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rhbk/keycloak-operator-bundle | Not specified Not affected: from 26.4.13-1 before *, from 26.6.3-3 before * | CVE List |
| rhbk/keycloak-rhel9 | Not specified Not affected: from 26.4-19 before *, from 26.6-6 before * | CVE List |
| rhbk/keycloak-rhel9-operator | Not specified Not affected: from 26.4-19 before *, from 26.6-6 before * | CVE List |
| org.keycloak:keycloak-services (Maven) | before 26.4.13, from 26.5.0 before 26.6.3 | GitHub Advisory Database |
| redhat build_of_keycloak | Not specified | NVD |
All scores
| redhat | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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: ["*"]`.
NVD (es)
Se encontró un defecto en Keycloak. Un atacante remoto puede explotar una vulnerabilidad de inyección de encabezado de Cross-Origin Resource Sharing (CORS) en el endpoint de token de User-Managed Access (UMA) de Keycloak. Este defecto ocurre porque la declaración “azp” de un JSON Web Token (JWT) proporcionado por el cliente se utiliza para establecer el encabezado “Access-Control-Allow-Origin” antes de que se valide la firma del JWT. Cuando un JWT especialmente diseñado con un valor “azp” controlado por el atacante es procesado, este valor se refleja como el origen CORS, incluso si la concesión es rechazada posteriormente. Esto puede llevar a la exposición de información de baja sensibilidad de las respuestas de error del servidor de autorización, debilitando el aislamiento de origen, pero solo cuando un cliente objetivo está mal configurado con “webOrigins: [’*’]”.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-37977 changed 2026-06-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5v8v-xvjv-57x7 changed 2026-07-15 | CC-BY-4.0 |
| NVD | CVE-2026-37977 changed 2026-10-26 | Public domain |