Live threats

All CVEs / Redhat

CVE-2021-20195Redhat Keycloak

Critical 9.6 No auth needed

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
Weakness (CWE)
CWE-20, CWE-116
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Keycloak.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
redhatkeycloak< 12.0.3

Official sources

References

Links published by the sources. Open them with care.