CVE-2019-3868: Exposure of Sensitive Information to an Unauthorized Actor in Keycloak

org.keycloak:keycloak-core Updated 02 Oct 2025

Summary

30/04/2019
Yes i
Moderate
3.8

CVE-2019-3868: Exposure of Sensitive Information to an Unauthorized Actor in Keycloak. Affects org.keycloak:keycloak-core versions < 6.0.0. Fixed in 6.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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Keycloak is an open-source identity and access management solution that provides single sign-on capabilities for web applications. It allows users to authenticate once and gain access to multiple applications without the need for separate login credentials. Keycloak uses tokens, such as access or id tokens JWT, to manage user sessions and provide secure authentication. However, prior to version 6.0.0, Keycloak allowed the end user token to be used as the session cookie for browser sessions for OIDC. This introduced a vulnerability where an attacker with access to the service provider backend could hijack a user's browser session.

Vulnerability Detail

The vulnerability (CVE-2019-3868) in Keycloak allows an unauthorized actor to gain access to sensitive information. By exploiting this vulnerability, an attacker with access to the service provider backend can hijack a user's browser session. This means that the attacker can impersonate the user and perform actions on their behalf, potentially leading to unauthorized access to sensitive data or unauthorized actions within the application.

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.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 possible workaround is to implement a custom session management solution that does not rely on the end user token as the session cookie. This can involve generating a separate session identifier and associating it with the user's token. By decoupling the session management from the token, the vulnerability can be mitigated. Here is an example of how this can be done in Java using the Keycloak Java Adapter:

// Generate a session identifier
String sessionId = generateSessionId();

// Associate the session identifier with the user's token
Token token = ...; // Retrieve the user's token
token.setSessionId(sessionId);

// Store the session identifier in a secure manner
storeSessionId(sessionId);

Conclusion

In conclusion, the vulnerability (CVE-2019-3868) in Keycloak allows an unauthorized actor to hijack a user's browser session, potentially leading to unauthorized access to sensitive data or unauthorized actions within the application. To mitigate this vulnerability, it is recommended to upgrade Keycloak to version 6.0.0 or later. If immediate upgrade is not possible, implementing a custom session management solution can serve as a temporary workaround. For further support on vulnerability remediation, you can contact DevNack.com.

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

Share this vulnerability

FAQ

Keycloak is an open-source identity and access management solution that provides single sign-on capabilities for web applications. It allows users to authenticate once and gain access to multiple applications without the need for separate login credentials.

This vulnerability allows an unauthorized actor to hijack a user's browser session, potentially leading to unauthorized access to sensitive data or unauthorized actions within the application.

To fix this vulnerability, it is recommended to upgrade Keycloak to version 6.0.0 or later. This version includes a fix that prevents the end user token from being used as the session cookie for browser sessions.

If upgrading Keycloak is not immediately feasible, a possible workaround is to implement a custom session management solution that does not rely on the end user token as the session cookie.

For more information about this vulnerability, you can refer to the CVE-2019-3868 advisory on the GitHub Advisory Database.

Related vulnerabilities

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

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.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