CVE-2021-20222 json
Code injection in keycloak
published 2021-03-23 5 y ago modified 2026-06-17 4 mo ago also GHSA-2mq8-99q7-55wx , EUVD-2021-0903
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
A flaw was found in keycloak. The new account console in keycloak can allow malicious code to be executed using the referrer URL. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Patch / fix
- maven org.keycloak:keycloak-parent 12.0.3
- redhat keycloak 13.0.0
- keycloak Arch Linux 13.0.0-1
arch linux advisories AVG-1926
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-20222 updated cvss 8.3
keycloak: reflected XSS attack with referrer in new account console
-
Red Hat Decision Manager 7 keycloak keycloak Red Hat Fuse 7 keycloak keycloak Red Hat Integration Camel K 1 keycloak keycloak Red Hat OpenShift Application Runtimes keycloak keycloak Red Hat Process Automation 7 keycloak keycloak Red Hat Single Sign-On 7 rh-sso7-keycloak rh-sso7-keycloaknot affected: vulnerable code not present
+1 more productsfewer
Red Hat support for Spring Boot keycloak keycloak
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
1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-parent | >=9.0.0, <12.0.3 |
12.0.3 |
Affected products
- n/a keycloak
Classification
References
-
github.com
/keycloak/keycloak/commit/3b80eee5bfdf2b80c47465c0f2eaf70074808741
web
-
bugzilla.redhat.com
/show_bug.cgi?id=1924606
web, issue-tracking, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-20222
advisory
-
access.redhat.com
/security/cve/cve-2021-20222
web
Sources
- CVE List CVE-2021-20222
- GitHub Advisory GHSA-2mq8-99q7-55wx
- NVD CVE-2021-20222
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.