CVE-2021-20195Redhat Keycloak
Critical 9.6 No auth needed
Follow: this CVE · Redhat · Redhat Keycloak We alert you by email or Slack (account required).
- Priority
- 73
- CVSS 3.1
- 9.6
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- May 28, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
What happens
A flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to user-supplied data fields not being properly encoded and Javascript code being used to process the data. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
What to do
- Apply the vendor's security update for Keycloak.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-core |
< 13.0.0 |
13.0.0 |
— |
Per OSV / GitHub Advisories (GHSA-q6w2-89hq-hq27). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | keycloak | < 12.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory