CVE-2026-37977: Origin Validation Error in Red Hat Red Hat build of Keycloak 26.4
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: ["*"]`.
AI Analysis
Technical Summary
This vulnerability in Red Hat build of Keycloak 26.4 allows a remote attacker to inject a malicious origin into the Access-Control-Allow-Origin header via the 'azp' claim in a JWT before signature validation. Because the origin is reflected even if the JWT grant is later rejected, it can weaken origin isolation and lead to exposure of low-sensitivity information from error responses. The issue requires a misconfiguration where the client has webOrigins set to ['*']. The CVSS score is 3.7 (low severity). The vendor advisory indicates no explicit patch or fix currently available for this specific issue but references updated Keycloak 26.6.3 images addressing multiple vulnerabilities including this one. However, no direct fix for this CVE is explicitly stated in the advisory, and the remediation level is not provided. The vulnerability is not in a cloud service, and no known exploits are reported in the wild.
Potential Impact
The impact is limited to potential exposure of low-sensitivity information from authorization server error responses due to weakened origin isolation caused by CORS header injection. There is no impact on integrity or availability. Exploitation requires a misconfigured client with webOrigins set to ['*'], which is not a default or recommended configuration. The CVSS vector indicates network attack vector, high attack complexity, no privileges required, no user interaction, and only confidentiality impact (low).
Mitigation Recommendations
The vendor advisory does not explicitly state a patch or official fix for this vulnerability. However, updated Red Hat build of Keycloak 26.6.3 images are available that address multiple security issues including this one. Users should upgrade to Red Hat build of Keycloak 26.6.3 or later to obtain these fixes. Additionally, clients should avoid misconfiguration by not setting webOrigins to ['*'], thereby reducing exposure to this vulnerability. Back up existing installations before applying updates. Monitor the vendor advisory for any future updates or patches specific to this issue.
CVE-2026-37977: Origin Validation Error in Red Hat Red Hat build of Keycloak 26.4
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: ["*"]`.
CVSS v3.1
Score 3.7low
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Red Hat build of Keycloak 26.4 allows a remote attacker to inject a malicious origin into the Access-Control-Allow-Origin header via the 'azp' claim in a JWT before signature validation. Because the origin is reflected even if the JWT grant is later rejected, it can weaken origin isolation and lead to exposure of low-sensitivity information from error responses. The issue requires a misconfiguration where the client has webOrigins set to ['*']. The CVSS score is 3.7 (low severity). The vendor advisory indicates no explicit patch or fix currently available for this specific issue but references updated Keycloak 26.6.3 images addressing multiple vulnerabilities including this one. However, no direct fix for this CVE is explicitly stated in the advisory, and the remediation level is not provided. The vulnerability is not in a cloud service, and no known exploits are reported in the wild.
Potential Impact
The impact is limited to potential exposure of low-sensitivity information from authorization server error responses due to weakened origin isolation caused by CORS header injection. There is no impact on integrity or availability. Exploitation requires a misconfigured client with webOrigins set to ['*'], which is not a default or recommended configuration. The CVSS vector indicates network attack vector, high attack complexity, no privileges required, no user interaction, and only confidentiality impact (low).
Mitigation Recommendations
The vendor advisory does not explicitly state a patch or official fix for this vulnerability. However, updated Red Hat build of Keycloak 26.6.3 images are available that address multiple security issues including this one. Users should upgrade to Red Hat build of Keycloak 26.6.3 or later to obtain these fixes. Additionally, clients should avoid misconfiguration by not setting webOrigins to ['*'], thereby reducing exposure to this vulnerability. Back up existing installations before applying updates. Monitor the vendor advisory for any future updates or patches specific to this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-04-06T07:48:39.721Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-37977","vendor":"Red Hat"}]
Threat ID: 69d372ac0a160ebd9293290b
Added to database: 04/06/2026, 08:45:32 UTC
Last enriched: 07/16/2026, 11:23:06 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 127
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.