CVE-2022-2668
HIGH 7.2CVSS 3.1Keycloak SAML javascript protocol mapper: Uploading of scripts through admin console
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
- Published
- 5 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Also known as
- GHSA-wf7g-7h6h-678v
- Sources
- NVDJSONOSV GHSA-wf7g-7h6h-678vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:18.0.0:*:*:*:*:*:*:* |
= 18.0.0 | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | Maven | org.keycloak:keycloak-parent | < 19.0.2 | 19.0.2 |
References
- https://access.redhat.com/security/cve/CVE-2022-2668 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-wf7g-7h6h-678v · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-2668 · ADVISORY
- https://github.com/keycloak/keycloak/commit/e2ae7eef39b27e48ffa4764995d558555f02838c · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2115392 · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 5 Aug 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Sep 2022)