CVE-2021-20222
HIGH 7.5CVSS 3.1Code injection in keycloak
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.
- Published
- 23 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-79
- Also known as
- GHSA-2mq8-99q7-55wx
- Sources
- NVDJSONOSV GHSA-2mq8-99q7-55wxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
>= 9.0.0, < 13.0.0 | 13.0.0 |
| OSV | Maven | org.keycloak:keycloak-parent | >= 9.0.0, < 12.0.3 | 12.0.3 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1924606 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20222 · ADVISORY
- https://github.com/keycloak/keycloak/commit/3b80eee5bfdf2b80c47465c0f2eaf70074808741 · WEB
- https://access.redhat.com/security/cve/cve-2021-20222 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Mar 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2021)