CVE-2025-13881: Org.keycloak.services.resources.admin: keycloak: limited administrator can retrieve sensitive user attributes via admin api

Published Dec 2, 2025
·
Updated

A flaw was found in Keycloak Admin API. This vulnerability allows an administrator with limited privileges to retrieve sensitive custom attributes via the /unmanagedAttributes endpoint, bypassing User Profile visibility settings.

Other sources

The Keycloak Admin API (/unmanagedAttributes) endpoint fails to respect the visibility configuration defined in the User Profile settings. This allows an administrator with limited privileges (specifically the view-users role) to retrieve sensitive custom attributes—such as phone numbers or personal addresses—that are explicitly configured to be hidden from both users and administrators in the GUI.

Requirements to exploit

The attacker must have a valid account on the realm. The attacker must have the view-users role (considered an admin privilege). The target realm must use the User Profile feature with custom attributes set to restricted visibility. Component affected: org.keycloak.services.resources.admin

Red Hat

Affected Software

2 affected componentsFixes available
Keycloak Admin API
maven/org.keycloak:keycloak-services<26.5.2
26.5.2

Event History

Dec 2, 2025
Data Sourced
via Red Hat·02:02 PM
DescriptionSeverityAffected Software
Feb 2, 2026
CVE Published
via MITRE·05:43 AM
Data Sourced
via MITRE·05:43 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:30 AM
Data Sourced
via GitHub·06:30 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-13881?

CVE-2025-13881 is considered a moderate severity vulnerability because it allows a limited administrator to access sensitive user attributes.

2

How do I fix CVE-2025-13881?

To mitigate CVE-2025-13881, update the Keycloak Admin API to version 26.5.2 or later.

3

Who is affected by CVE-2025-13881?

CVE-2025-13881 affects users of the Keycloak Admin API who have limited administrative privileges.

4

What type of attributes can be retrieved in CVE-2025-13881?

CVE-2025-13881 allows access to sensitive custom attributes through the admin API endpoints.

5

What versions are vulnerable to CVE-2025-13881?

Versions of the Keycloak Admin API prior to 26.5.2 are vulnerable to CVE-2025-13881.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203