SecurityContext

CVE-2021-20195: Keycloak - Stored XSS

  • Cve: CVE-2021-20195
  • Name: Keycloak - Stored XSS
  • Description: 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.
  • Impact: Attackers can execute malicious scripts, leading to account takeover, data theft, and system disruption.
  • Remediation: Update to version 13.0.0 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs user interaction to exploit
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.01249
  • Epss percentile: 0.70133
  • Assignee: [email protected]
  • Published at: 2021-05-28T11:15:07Z
  • Age in days: 2006
  • Modified at: 2026-06-17T03:33:27Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-20195
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-20Improper Input Validation
CWE-116Improper Encoding or Escaping of Output

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://bugzilla.redhat.com/show_bug.cgi?id=1919143nvdIssue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
redhat:keycloak< 12.0.3nonvd/v1/products/redhat/keycloak

Projects

RepositoryLink kindsIndexedUrl
keycloak/keycloakcommit, fixyes/v1/repositories/keycloak/keycloak

Index

  • Repositories: 14
  • Repositories high signal: 4
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 39460
  • 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