CVE-2026-37977
JSON

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 packageVersionsReported by
rhbk/keycloak-operator-bundleNot specified
Not affected: from 26.4.13-1 before *, from 26.6.3-3 before *
CVE List
rhbk/keycloak-rhel9Not specified
Not affected: from 26.4-19 before *, from 26.6-6 before *
CVE List
rhbk/keycloak-rhel9-operatorNot 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.3GitHub Advisory Database
redhat build_of_keycloakNot specifiedNVD

All scores

redhat3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-346

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

https://access.redhat.com/errata/RHSA-2026:25097vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:25098vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:30049vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:30050vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2026-37977vdb-entry, vendor-advisory, web
https://bugzilla.redhat.com/show_bug.cgi?id=2455324issue-tracking, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-37977advisory
https://github.com/keycloak/keycloak/issues/48036web
https://github.com/keycloak/keycloak/pull/49512web
https://github.com/keycloak/keycloak/commit/1439bd58a9f25b0d28d0400015f49f35f227ce04web
https://github.com/keycloak/keycloak/commit/461ce79a6cd6bfef7ca7fa41da287a3127f47ae4web
https://github.com/keycloak/keycloak/commit/ad34724a5d1ba8b6edf7a2c8c83826b1c20539e7web

Sources

SourceRecordLicence
CVE ListCVE-2026-37977 changed 2026-06-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-5v8v-xvjv-57x7 changed 2026-07-15CC-BY-4.0
NVDCVE-2026-37977 changed 2026-10-26Public domain