High

Code injection in keycloak

  • Disclosed: 13.05.2021
  • Updated: 11.10.2026 11:21

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.keycloak:keycloak-parent >= 9.0.0, < 12.0.3 12.0.3

References

CVSS score 8.3/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness (CWE)
CWE-20, CWE-79
Platform
Java / Kotlin (Maven)
Package
org.keycloak:keycloak-parent
Disclosed
13.05.2021
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-2mq8-99q7-55wx - CC BY 4.0

Vulnerability history: org.keycloak:keycloak-parent

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (26) in the archive
Total entries
26
First → latest
05.2021 02.2026
Without a fix
6
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 12
  • Medium 10
  • Low 2

Disclosures per year

  1. 2021: 1
  2. 2022: 22
  3. 2023: 1
  4. 2024: 0
  5. 2025: 0
  6. 2026: 2
Severity:
  1. High · 8.1 CVE-2022-4137 < 20.0.5 20.0.5
  2. Critical · 9.1 CVE-2022-3782 < 20.0.2 20.0.2
  3. High · 7.5 CVE-2021-3513 < 13.0.0 13.0.0
  4. Critical · 9.8 CVE-2019-14910 >= 7.0.0, <= 7.0.1 no fix
  5. High · 8.3 CVE-2019-14909 >= 7.0.0, <= 7.0.1 no fix
  6. High · 7.5 CVE-2017-12159 < 3.4.0 3.4.0
  7. High · 7.2 CVE-2017-12160 < 3.3.0.Final 3.3.0.Final
  8. High · 8.1 CVE-2018-14657 < 4.6.0.Final 4.6.0.Final
  9. High · 7.1 CVE-2021-3461 < 14.0.0 14.0.0
  10. High · 7.5 CVE-2020-14366 < 12.0.0 12.0.0
  11. High · 7.5 CVE-2020-10758 < 11.0.1 11.0.1
  12. Code injection in keycloak this entry
    High · 8.3 CVE-2021-20222 >= 9.0.0, < 12.0.3 12.0.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.