Medium

Keycloak Cross-site Scripting (XSS) via assertion consumer service URL in SAML POST-binding flow

  • Disclosed: 17.04.2024
  • Updated: 11.10.2026 13:20

Keycloak allows arbitrary URLs as SAML Assertion Consumer Service POST Binding URL (ACS), including JavaScript URIs (javascript:).

Allowing JavaScript URIs in combination with HTML forms leads to JavaScript evaluation in the context of the embedding origin on form submission.

Acknowledgements:

Special thanks to Lauritz Holtmann for reporting this issue and helping us improve our project.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.keycloak:keycloak-services < 22.0.10, >= 23.0.0, < 24.0.3 22.0.10, 24.0.3

References

CVSS score 6/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L
Weakness (CWE)
CWE-20, CWE-601, CWE-79
Platform
Java / Kotlin (Maven)
Package
org.keycloak:keycloak-services
Disclosed
17.04.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8rmm-gm28-pj8q - CC BY 4.0

Vulnerability history: org.keycloak:keycloak-services

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 (98) in the archive
Total entries
98
First → latest
01.2022 08.2026
Without a fix
16
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 26
  • Medium 51
  • Low 18

Disclosures per year

  1. 2022: 9
  2. 2023: 9
  3. 2024: 17
  4. 2025: 11
  5. 2026: 52
Severity:
  1. Critical · 9.1 CVE-2026-18963 >= 26.0.0, < 26.4.15, >= 26.5.0, < 26.6.6, >= 26.7.0, < 26.7.2 26.4.15, 26.6.6, 26.7.2
  2. High · 7.7 CVE-2026-2092 <= 26.2.5, >= 26.3.0, <= 26.4.7, >= 26.5.0 no fix
  3. High · 7.5 CVE-2026-4634 < 26.5.7 26.5.7
  4. High · 8.8 CVE-2026-1486 >= 26.5.0, < 26.5.3, < 26.4.9 26.5.3, 26.4.9
  5. High · 8.1 CVE-2026-1529 >= 26.5.0, < 26.5.3, < 26.2.13, >= 26.3.0, < 26.4.9 26.5.3, 26.2.13, 26.4.9
  6. High · 8.2 CVE-2025-3501 < 26.2.2 26.2.2
  7. High · 6.5 CVE-2024-10270 < 24.0.9, >= 25.0.0, < 26.0.6 24.0.9, 26.0.6
  8. High · 7.1 CVE-2024-7341 < 22.0.12, >= 23.0.0, < 24.0.7, >= 25.0.0, < 25.0.5 22.0.12, 24.0.7, 25.0.5
  9. High · 8.1 CVE-2024-1132 < 22.0.10, >= 23.0.0, < 24.0.3 22.0.10, 24.0.3
  10. High · 7.4 CVE-2024-1249 < 22.0.10, >= 23.0.0, < 24.0.3 22.0.10, 24.0.3
  11. Keycloak Cross-site Scripting (XSS) via assertion consumer service URL in SAML POST-binding flow this entry
    Medium · 6.0 CVE-2023-6717 < 22.0.10, >= 23.0.0, < 24.0.3 22.0.10, 24.0.3
  12. High · 7.1 CVE-2024-2419 < 22.0.10, >= 23.0.0, < 24.0.3 22.0.10, 24.0.3
  13. High · 8.7 CVE-2023-0264 < 21.0.1 21.0.1
  14. High · 8.8 CVE-2014-3709 < 1.0.3.Final 1.0.3.Final
  15. Critical · 9.8 CVE-2022-1245 < 18.0.0 18.0.0
  16. High · 8.8 CVE-2021-4133 < 15.1.1 15.1.1

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.