CVE-2026-2366: @keycloak/keycloak admin client Keycloak Vulnerable To Authorization Bypass Vulnerability

LOW
Advisory Identifier: GHSA-r8jr-wg88-fq5c
CVSS 3.1
CWE-639
Published
Advisory Summary

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

CVE-2026-2366 at a Glance

CVE Identifier CVE-2026-2366
GHSA Identifier GHSA-r8jr-wg88-fq5c
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product @keycloak/keycloak admin client
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

@keycloak/keycloak-admin-client fixed: Latest secure release
npm install @keycloak/keycloak-admin-client@Latest secure release
org.keycloak:keycloak-js-admin-client fixed: Latest secure release
<dependency>
    <groupId>org.keycloak</groupId>
    <artifactId>keycloak-js-admin-client</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2026-2366 is a security vulnerability in @keycloak/keycloak admin client involving Keycloak vulnerable to authorization bypass via the Admin API under CWE-639: Authorization Bypass Through User-Controlled Key.
Which @keycloak/keycloak admin client versions are affected?
Affected versions include releases prior to current release patches across affected packages: @keycloak/keycloak-admin-client, org.keycloak:keycloak-js-admin-client.
What version fixes CVE-2026-2366?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @keycloak/keycloak-admin-client affected?
Yes, @keycloak/keycloak-admin-client is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is keycloak-js-admin-client affected?
Yes, org.keycloak:keycloak-js-admin-client is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-2366?
CVE-2026-2366 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-2366?
CVE-2026-2366 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (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.).
How can I check npm dependencies for CVE-2026-2366?
Run the dependency tree command: 'npm ls @keycloak/keycloak-admin-client'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}