MEDIUM5.3
GHSA-m4j5-5x4r-2xp9
Keycloak SMTP Inject Vulnerability
Quick fix
GHSA-m4j5-5x4r-2xp9 — org.keycloak:keycloak-services: upgrade to the fixed version with the command below.
# pom.xml: bump <version>26.2.8</version> for org.keycloak:keycloak-servicesDetails
Special characters used during e-mail registration may perform SMTP Injection and unexpectedly send short unwanted e-mails. The email is limited to 64 characters (limited local part of the email), so the attack is limited to very shorts emails (subject and little data, the example is 60 chars). This flaw's only direct consequence is an unsolicited email being sent from the Keycloak server. However, this action could be a precursor for more sophisticated attacks.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.keycloak:keycloak-services
Introduced in:
0Fixed in: 26.2.8Fix
# pom.xml: bump <version>26.2.8</version> for org.keycloak:keycloak-servicesMaven/org.keycloak:keycloak-services
Introduced in:
26.3.0Fixed in: 26.3.3Fix
# pom.xml: bump <version>26.3.3</version> for org.keycloak:keycloak-servicesReferences
- https://github.com/keycloak/keycloak/security/advisories/GHSA-m4j5-5x4r-2xp9[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-8419[ADVISORY]
- https://access.redhat.com/errata/RHSA-2025:15336[WEB]
- https://access.redhat.com/errata/RHSA-2025:15337[WEB]
- https://access.redhat.com/errata/RHSA-2025:15338[WEB]
- https://access.redhat.com/errata/RHSA-2025:15339[WEB]
- https://access.redhat.com/security/cve/CVE-2025-8419[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2385776[WEB]
- https://github.com/keycloak/keycloak[PACKAGE]