CVE-2021-20323 json
Cross-site Scripting in Keycloak
published 2022-03-25 4 y ago modified 2026-06-17 4 mo ago also GHSA-xpgc-j48j-jwv9 , EUVD-2022-1588
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 37.2%
- EPSS 37.2% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak.
Patch / fix
- maven org.keycloak:keycloak-core 17.0.0
- redhat keycloak 17.0.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-20323 updated cvss 6.1
keycloak-services: POST based reflected Cross Site Scripting vulnerability
-
Red Hat RHSSO 7.5.1fixed: vendor fix RHSA-2022:0407
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
37.25% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Keycloak 10.0.0 - 18.0.0 - Cross-Site Scripting nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-core | >=15.0.0, <17.0.0 |
17.0.0 |
Affected products
- n/a keycloak-services
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
bugzilla.redhat.com
/show_bug.cgi?id=2013577
web, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-20323
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2021-20323
- GitHub Advisory GHSA-xpgc-j48j-jwv9
- NVD CVE-2021-20323
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.