Vulnerabilities in pkg:npm/@keycloak/keycloak-admin-client
PACKAGECVE-2026-2366 is a LOW (CVSS 3.1) keycloak vulnerable to authorization bypass vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting @keycloak/keycloak admin client libraries in the npm ecosystem. The issue involves keycloak vulnerable to authorization bypass via the admin api. Remediation is available in the latest vendor maintenance releases.
pkg:npm/@keycloak/keycloak-admin-client
Vulnerability advisories affecting package pkg:npm/@keycloak/keycloak-admin-client. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-r8jr-wg88-fq5c | CVE-2026-2366 | LOW | Keycloak vulnerable to authorization bypass via the Admin API |
CVE-2026-2366 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-2366
To remediate this vulnerability, upgrade all affected @keycloak/keycloak admin client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @keycloak/keycloak-admin-client@Latest secure release
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-js-admin-client</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @keycloak/keycloak-admin-client
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-2366, inspect your project dependencies using npm:
npm ls @keycloak/keycloak-admin-client
Analyze the terminal output to locate any version of @keycloak/keycloak admin client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls @keycloak/keycloak-admin-client command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In @keycloak/keycloak admin client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-2366 Affected @keycloak/keycloak admin client Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@keycloak/keycloak-admin-client
|
npm |
≤ 26.5.5
|
|
|
org.keycloak:keycloak-js-admin-client
|
Maven |
≤ 26.5.5
|
|
References
Frequently Asked Questions
What is CVE-2026-2366?
Which @keycloak/keycloak admin client versions are affected?
What version fixes CVE-2026-2366?
Is @keycloak/keycloak-admin-client affected?
Is keycloak-js-admin-client affected?
What is the CVSS score of CVE-2026-2366?
What CWE is associated with CVE-2026-2366?
How can I check npm dependencies for CVE-2026-2366?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r8jr-wg88-fq5c",
"modified" : "2026-04-02T15:31:35Z",
"published" : "2026-03-12T12:30:29Z",
"aliases" : [ "CVE-2026-2366" ],
"summary" : "Keycloak vulnerable to authorization bypass via the Admin API",
"details" : "A flaw was found in Keycloak. An authorization bypass vulnerability in the Keycloak Admin API allows any authenticated user, even those without administrative privileges, to enumerate the organization memberships of other users. This information disclosure occurs if the attacker knows the victim's unique identifier (UUID) and the Organizations feature is enabled.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@keycloak/keycloak-admin-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "26.5.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.keycloak:keycloak-js-admin-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "26.5.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2366"
}, {
"type" : "WEB",
"url" : "https://github.com/keycloak/keycloak/issues/47062"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:6477"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:6478"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-2366"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2439081"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keycloak/keycloak"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-12T17:38:28Z",
"nvd_published_at" : "2026-03-12T11:15:55Z"
}
}