WaratekVRT Sign in

CVE-2021-20323 Keycloak

Affected softwareKeycloak
Severity6.1 Medium CVSS 3.1 2 scores
Fixed in17.0.0
WeaknessCross-site scripting (CWE-79)
Published25 Mar 2022
Updated17 Jun 2026

Description

A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 4 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2022-12-07.
  • EPSS 37% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99% of all scored CVEs.

2 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC ndmalc/CVE-2021-20323 12 2022-12-07
GitHub PoC A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. 3 2024-01-11
GitHub PoC Exploitation Scanner Cross Site Scripting vulnerability in Keycloak. 2 2024-07-07
Nuclei Keycloak 10.0.0 - 18.0.0 - Cross-Site Scripting

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by A reference pointing at the upstream fix: a commit, a PR, a Red Hat bug
Finding A Red Hat Bugzilla ticket (https://bugzilla.redhat.com/show_bug.cgi?id=2013577) tracks the fix. That makes this CVE a candidate for an ARMR patch rule. No rule exists and none is scheduled: whether one can be derived depends on reading the upstream change the ticket links.
Candidate fix https://bugzilla.redhat.com/show_bug.cgi?id=2013577 : a Red Hat bug: the triage, which links onward to the fix

CVSS

6.1 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N NVD Primary published
CVSS 2.0 4.3 none AV:N/AC:M/Au:N/C:N/I:P/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.keycloak:keycloak-core 15.0.0 17.0.0 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-core generic ≥ 15.0.0 and < 17.0.0
nvd redhat keycloak generic < 17.0.0

References

URLTags
https://bugzilla.redhat.com/show_bug.cgi?id=2013577 bugzilla
https://github.com/keycloak/keycloak PACKAGE

Timeline

Published2022-03-25By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.