Keycloak: keycloak error_description injection on error pages (Keycloak keycloak)

CVE-2025-10044
MEDIUM 4.3

At a glance

Source
NVD
EPSS
EPSS 0.31 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-79 — Improper Neutralization of Input During Web Page Generation

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:Nredhat
CVSS 3.1MEDIUM 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected products

ProductVersions
Keycloak · keycloakaffected 0 < 26.2.9
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0.17-1 < *
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0-21 < *
Red Hat · Red Hat build of Keycloak 26.0unaffected 26.0-22 < *
Red Hat · Red Hat build of Keycloak 26.0.17
Red Hat · Red Hat build of Keycloak 26.2unaffected 26.2.9-1 < *
Red Hat · Red Hat build of Keycloak 26.2unaffected 26.2-9 < *
Red Hat · Red Hat build of Keycloak 26.2unaffected 26.2-9 < *
Red Hat · Red Hat build of Keycloak 26.2.9

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD