Advisory Published
Updated

REDHAT-BUG-2040268

First published: Thu Jan 13 2022(Updated: )

The ”Groups” dropdown in ”Add user” is not escaped properly and can be exploited. Steps to reproduce Start a vanilla keycloak (or an existing one): docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:16.1.0 Login and go to Groups. Click New to add a new group. Add a group using the payload below: "><img src=x onerror=prompt(location)> Go to Users and click Add user. Click Groups and enter a character, as o, to display the group. This will trigger our prompt from the group name. Maybe also other places has this issue? This is probably an easy fix for you, but in case you want me to look into it I can do it. I’m jxn0 on github.

Affected SoftwareAffected VersionHow to fix
Red Hat Keycloak

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2040268?

    The severity of REDHAT-BUG-2040268 is classified as moderate due to potential exploitation risks.

  • How do I fix REDHAT-BUG-2040268?

    To fix REDHAT-BUG-2040268, ensure that you apply the latest security patches provided by Red Hat for Keycloak.

  • What versions of Keycloak are affected by REDHAT-BUG-2040268?

    REDHAT-BUG-2040268 affects the Keycloak versions that have not been properly escaped in the 'Groups' dropdown.

  • What types of vulnerabilities does REDHAT-BUG-2040268 represent?

    REDHAT-BUG-2040268 represents a security vulnerability related to improper input validation and escaping.

  • Can exploitation of REDHAT-BUG-2040268 allow unauthorized access?

    Yes, exploitation of REDHAT-BUG-2040268 can allow unauthorized access or manipulation of user groups.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203