{"id":"CVE-2021-20222","aliases":["CVE-2021-20222","GHSA-2mq8-99q7-55wx"],"related":[],"kind":"vulnerability","state":"published","title":"Code injection in keycloak","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en keycloak.&#xa0;La nueva consola de cuentas en keycloak puede permitir que sea ejecutado un código malicioso usando la URL de referencia.&#xa0;La mayor amenaza de esta vulnerabilidad es la confidencialidad e integridad de los datos, así como la disponibilidad del sistema","source":"nvd"}],"published":"2021-03-23T16:36:39.000Z","modified":"2026-06-17T03:33:29.880Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-79"],"affected":[{"ranges":[{"version":"keycloak 13.0.0","status":"affected"}],"product":"keycloak","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"12.0.3"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-parent","purl":"pkg:maven/org.keycloak/keycloak-parent","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.0.0","fixed":"13.0.0"}],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1924606","tags":["issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20222","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/3b80eee5bfdf2b80c47465c0f2eaf70074808741","tags":["web"],"sources":["ghsa"]},{"url":"https://access.redhat.com/security/cve/cve-2021-20222","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20222","url":"https://www.cve.org/CVERecord?id=CVE-2021-20222","licence":"CVE Terms of Use","modified":"2024-08-03T17:30:07.597Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2mq8-99q7-55wx","url":"https://github.com/advisories/GHSA-2mq8-99q7-55wx","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:35.830Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20222","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20222","licence":"Public domain","modified":"2026-06-17T03:33:29.880Z"}],"updatedAt":"2026-11-25T22:58:00.393Z","epss":{"score":0.01158,"percentile":0.67988,"date":"2026-12-01T12:00:22.000Z"}}