CVE-2026-37977: Keycloak - CORS Misconfiguration
- Cve: CVE-2026-37977
- Name: Keycloak - CORS Misconfiguration
- 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: ["*"]`.
- Impact: Attackers can expose low-sensitivity information and weaken origin isolation, potentially leading to information disclosure.
- Remediation: Update to the latest Keycloak version with the fix or apply recommended configuration changes to avoid wildcard webOrigins.
- Vulnerability type: cors_misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.00263
- Epss percentile: 0.18127
- Assignee: [email protected]
- Published at: 2026-04-06T09:16:17Z
- Age in days: 232
- Modified at: 2026-10-26T21:10:00Z
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-37977
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-346 | Origin Validation Error |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:build_of_keycloak | all versions | no | nvd | /v1/products/redhat/build_of_keycloak |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | commit, fix, issues, package, pull | yes | /v1/repositories/keycloak/keycloak |
Index
- Repositories: 13
- Repositories high signal: 9
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts