Intel

AIKIDO-2026-402147

keycloak-services is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-107889Published 4 days ago
November 16, 2026

55

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The login-theme sanitizer restores ampersands in link URLs after sanitization, reactivating numeric character references that can encode a JavaScript URL. A realm administrator can store crafted HTML in realm display fields that executes script in visitors’ browsers.

How do I fix this?

Upgrade org.keycloak:keycloak-services to the patched version. The fix decodes numeric references and validates the resulting URL scheme before rendering the link.

Who does this affect?

You are affected if you use a vulnerable version of org.keycloak:keycloak-services and a realm administrator can set HTML display fields rendered through kcSanitize in login or error pages. Users visiting those pages can be exposed to attacker-supplied script.

Versions

26.1.3 - 26.8.1

Fixed in 26.8.2

Background info

keycloak-services is vulnerable to Cross-Site Scripting (XSS) in versions 26.1.3 - 26.8.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea