CVE-2020-1758: Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Keycloak

org.keycloak:keycloak-parent Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Moderate
5.9

CVE-2020-1758: Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Keycloak. Affects org.keycloak:keycloak-parent versions < 10.0.0. Fixed in 10.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Keycloak is an open-source identity and access management solution that allows users to authenticate and authorize applications. It provides features such as single sign-on, social login, and user federation. Keycloak is widely used in enterprise environments to secure applications and APIs.

Vulnerability Detail

A flaw was found in Keycloak versions before 10.0.0, where it does not perform TLS hostname verification while sending emails using the SMTP server. This vulnerability allows an attacker to perform a man-in-the-middle (MITM) attack. By intercepting the communication between Keycloak and the SMTP server, an attacker can read or modify the content of the emails being sent, potentially leading to unauthorized access or information disclosure.

How To Fix

Minimum fixed version

10.0.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading Keycloak is not immediately feasible, a temporary workaround is to disable email notifications or use a secure SMTP server that performs proper TLS hostname verification. However, it is strongly advised to upgrade to the latest version as soon as possible to fully mitigate the vulnerability.

Conclusion

In conclusion, the vulnerability in Keycloak versions before 10.0.0 allows for a man-in-the-middle attack during email communication with the SMTP server. To mitigate this vulnerability, it is crucial to upgrade Keycloak to version 10.0.0 or later. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.keycloak:keycloak-parent →

Share this vulnerability

FAQ

Keycloak is an open-source identity and access management solution that provides authentication and authorization services for applications and APIs.

This vulnerability allows an attacker to perform a man-in-the-middle attack and potentially read or modify the content of emails sent by Keycloak.

To fix this vulnerability, you should upgrade Keycloak to version 10.0.0 or later. Follow the upgrade instructions provided by the Keycloak documentation.

A temporary workaround is to disable email notifications or use a secure SMTP server that performs proper TLS hostname verification. However, upgrading to the latest version is strongly recommended.

You can find more information about Keycloak on the official Keycloak website and documentation.

Related vulnerabilities

Recent vulnerabilities recorded for org.keycloak:keycloak-parent.

How To Fix

Minimum fixed version

10.0.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback