Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.keycloak/keycloak-services
  4. ›
  5. CVE-2026-37980

CVE-2026-37980: Keycloak: Arbitrary code execution via Stored Cross-Site Scripting (XSS) in organization selection login page

April 14, 2026 (updated April 16, 2026)

A flaw was found in Keycloak, specifically in the organization selection login page. A remote attacker with manage-realm or manage-organizations administrative privileges can exploit a Stored Cross-Site Scripting (XSS) vulnerability. This flaw occurs because the organization.alias is placed into an inline JavaScript onclick handler, allowing a crafted JavaScript payload to execute in a user’s browser when they view the login page. Successful exploitation enables arbitrary JavaScript execution, potentially leading to session theft, unauthorized account actions, or further attacks against users of the affected realm.

References

  • access.redhat.com/security/cve/CVE-2026-37980
  • bugzilla.redhat.com/show_bug.cgi?id=2455325
  • github.com/advisories/GHSA-m32f-8vh9-2hh3
  • github.com/keycloak/keycloak
  • github.com/keycloak/keycloak/issues/48049
  • nvd.nist.gov/vuln/detail/CVE-2026-37980

Code Behaviors & Features

Detect and mitigate CVE-2026-37980 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 26.5.5

Solution

Unfortunately, there is no solution available yet.

Impact 6.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.keycloak/keycloak-services/CVE-2026-37980.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:02 +0000.