Duplicate Advisory: Keycloak error_description injection on error pages that can trigger phishing attacks
Moderate severity
GitHub Reviewed
Published
Sep 5, 2025
to the GitHub Advisory Database
•
Updated Oct 16, 2025
Withdrawn
This advisory was withdrawn on Oct 16, 2025
Description
Published by the National Vulnerability Database
Sep 5, 2025
Published to the GitHub Advisory Database
Sep 5, 2025
Reviewed
Oct 16, 2025
Withdrawn
Oct 16, 2025
Last updated
Oct 16, 2025
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-27gc-wj6x-9w55. This link is maintained to preserve external references.
Original Description
A flaw was found in Keycloak. Keycloak’s account console and other pages accept arbitrary text in the error_description query parameter. This text is directly rendered in error pages without validation or sanitization. While HTML encoding prevents XSS, an attacker can craft URLs with misleading messages (e.g., fake support phone numbers or URLs), which are displayed within the trusted Keycloak UI. This creates a phishing vector, potentially tricking users into contacting malicious actors.
References