CVE-2022-2668: Keycloak - Stored XSS
- Cve: CVE-2022-2668
- Name: Keycloak - Stored XSS
- Description: An issue was discovered in Keycloak that allows arbitrary Javascript to be uploaded for the SAML protocol mapper even if the UPLOAD_SCRIPTS feature is disabled
- Impact: Attackers can execute arbitrary Javascript in the context of the application, potentially leading to cross-site scripting or other client-side attacks.
- Remediation: Update to the latest version of Keycloak where this issue is fixed or apply the relevant security patches.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: admin_privileges
- Requirements: Attacker needs admin access to Keycloak
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01
- Epss percentile: 0.63692
- Assignee: [email protected]
- Published at: 2022-08-05T17:15:08Z
- Age in days: 1572
- Modified at: 2026-06-17T04:42:19Z
- References total: 1
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-2668
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
| Url | Source | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-2668 | nvd | Issue Tracking, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:keycloak | = 18.0.0 | no | nvd | /v1/products/redhat/keycloak |
| redhat:single_sign-on | = 7.0 | no | nvd | /v1/products/redhat/single_sign-on |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | commit, fix, package, security_advisory | yes | /v1/repositories/keycloak/keycloak |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 39460
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports