Keycloak x < 26.4.9 / 26.5.x < 26.5.2 Token Exchange Vulnerability

medium Nessus Plugin ID 297527

Synopsis

The remote host is missing one or more security updates.

Description

The version of Keycloak installed on the remote host is prior to 26.4.9 / 26.5.2 / 26.6.0. It is, therefore, affected by the following Token Exchange vulnerability:
- A flaw was found in the keycloak-services component of Keycloak. This vulnerability allows the issuance of access and refresh tokens for disabled users, leading to unauthorized use of previously revoked privileges, via a business logic vulnerability in the Token Exchange implementation when a privileged client invokes the token exchange flow. (CVE-2025-14559)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update to KeyCloak Version 26.5.2 or higher

See Also

https://github.com/advisories/GHSA-wv3h-x6c4-r867

https://github.com/keycloak/keycloak/issues/45651

Plugin Details

Severity: Medium

ID: 297527

File Name: keycloak_26_5_2.nasl

Version: 1.1

Type: local

Agent: unix

Family: Misc.

Published: 2/2/2026

Updated: 2/2/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: High

Base Score: 8.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:N

CVSS Score Source: CVE-2025-14559

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Vulnerability Information

CPE: cpe:/a:keycloak:keycloak

Required KB Items: installed_sw/Keycloak

Patch Publication Date: 1/21/2026

Vulnerability Publication Date: 1/21/2026

Reference Information

CVE: CVE-2025-14559

IAVB: 2026-B-0023