At a glance
- CVE ID(s): CVE-2026-4052 (WSO2 advisory WSO2-2026-5212)
- Severity: 9.8 CRITICAL - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Vendor / product: WSO2 - WSO2 API Manager, WSO2 API Control Plane, WSO2 Identity Server Key Manager Connector (apim-km-wso2is)
- Affected versions: WSO2 API Manager 4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0; WSO2 API Control Plane 4.5.0, 4.6.0; Identity Server Key Manager Connector (apim-km-wso2is) earlier than 1.8.8. Only deployments with Identity Server as a Resident Key Manager with database sharing are impacted.
- Fixed / patched versions: The advisory says to update WSO2 Identity Server and WSO2 API Manager to the latest U2 version and install the latest IS connector (versions below 1.8.8 are affected). A specific fixed build number for API Manager or Identity Server is not stated in the advisory - check the vendor page.
- Exploited in the wild: No known exploitation
- Attack vector: Network. No user interaction. The CVSS vector says no privileges required, while the description says the attacker is a self-registered user, so assume anyone who can self-register.
- Published by: WSO2 (CNA), CVE record published 2026-11-03. The vendor advisory page lists June 18, 2026 as its publish date.
- Official advisory: WSO2-2026-5212
What is this vulnerability?
CVE-2026-4052 is a missing authorization flaw (CWE-862) in a specific WSO2 setup. WSO2 Identity Server (IS) is configured as the Resident Key Manager for WSO2 API Manager, and the two share a database.
In that setup, a self-registered user can request a token from the Identity Server token endpoint. That token can then be used to reach the System REST APIs of WSO2 API Manager. These APIs are meant for administrative use, not for ordinary users.
The advisory title describes it as a self-registered user gaining admin privileges. The vendor does not publish exploitation details, and neither do we.
How does it affect you?
The vendor says a low-privileged user can invoke the System REST APIs. This can potentially lead to full administrative account takeover.
The CVSS score is 9.8. It rates confidentiality, integrity and availability impact as high, and attack complexity as low. No exploitation in the wild is recorded, and the CVE is not in CISA's KEV catalog. That can change, and the flaw is simple to attempt once someone understands the setup.
Realistic risk depends on one question: can strangers self-register on your Identity Server? If yes, treat this as urgent. If self-registration is disabled and you control who has accounts, risk is lower but not zero. The advisory does not say that disabling self-registration prevents the issue, so do not rely on it as a fix.
Who is affected?
You are in scope only if all of these are true:
- You run WSO2 API Manager 4.1.0 to 4.6.0, or WSO2 API Control Plane 4.5.0 or 4.6.0.
- WSO2 Identity Server is configured as a Resident Key Manager.
- The Identity Server and API Manager share a database.
The Identity Server Key Manager Connector (apim-km-wso2is) is listed as affected below version 1.8.8. The advisory states that only deployments with the Resident Key Manager and database sharing configuration are impacted. Other WSO2 API Manager deployments are not described as affected.
How to check if you are vulnerable
- List your API Manager and API Control Plane versions. Compare them with the affected versions above.
- Check whether an Identity Server is configured as the Key Manager for API Manager. In a distributed deployment this is set up following the WSO2 guide for configuring Identity Server as a Key Manager.
- Check whether the Identity Server and API Manager use a shared database. Review the datasource settings on both sides.
- Find the version of the IS connector installed on your Identity Server instances. The connector files are in the dropins directory (see below). If it is older than 1.8.8, it is affected.
- Check whether self-registration is enabled on your Identity Server.
- Check whether you are already on the latest U2 update level of both products. The advisory does not give a number for this, so confirm on the vendor page.
The connector components named in the advisory are these:
<IS_HOME>/repository/components/dropins/
wso2is.key.manager.core (jar)
wso2is.notification.event.handlers (jar)
<IS_HOME>/repository/deployment/server/webapps/
keymanager-operations.war
keymanager-operations/ (directory)If you find these older components in place on an in-scope deployment, assume you are vulnerable until you have updated them.
How to fix and recover
Follow the vendor steps in the advisory:
- Update WSO2 Identity Server to the latest U2 version.
- Update WSO2 API Manager to the latest U2 version.
- Update the WSO2 IS Connector on the Identity Server instances. Download the latest connector using the WSO2 documentation for your API Manager version. The connector is in Step 4, "Configure WSO2 Identity Server with WSO2 API Manager", first item. The advisory lists a documentation link for each API Manager version from 4.1.0 to 4.6.0; use the advisory page to reach them.
- In the dropins directory, replace the wso2is.key.manager.core jar and the wso2is.notification.event.handlers jar with the updated versions from the extracted connector's dropins directory.
- Remove keymanager-operations.war and the keymanager-operations directory from the webapps directory. Then add the new keymanager-operations.war from the extracted connector's webapps directory.
- Restart your WSO2 Identity Server deployments.
Verify after patching. Confirm the new jar and war files are in place and the old ones are gone. Confirm the connector reports a version of 1.8.8 or later. Confirm both products are on the latest U2 level. Test that a normal self-registered test account cannot reach the API Manager System REST APIs with a token from the Identity Server. Do this only on systems you own.
If you may have been exposed. The advisory warns of possible administrative takeover. The vendor gives no recovery steps beyond patching, so these are general precautions:
- Review API Manager and Identity Server logs for System REST API calls made by non-admin or self-registered accounts.
- Review the list of users, roles and recently created or changed accounts. Remove anything you cannot explain.
- Review API, application and key manager configuration for unexpected changes. Restore known-good configuration where needed.
- Rotate admin passwords, client secrets and any keys or tokens that an administrator could have viewed. Revoke active tokens issued to self-registered users.
Workarounds and mitigations
The advisory lists no workarounds. The fix is the update procedure above.
While you prepare the change, you can reduce exposure with general measures. These are not endorsed by the vendor as a fix:
- Limit network access to the Identity Server token endpoint and the API Manager System REST APIs to trusted networks where your design allows it.
- Review whether open self-registration is really needed on the Identity Server.
- Increase logging and alerting on the affected components until patched.
What to monitor
- Calls to the API Manager System REST APIs from accounts that are not administrators.
- Token requests to the Identity Server token endpoint from newly self-registered users, followed by admin-type API activity.
- New or modified admin users, role assignments, and key manager or API configuration changes.
- Spikes in self-registrations on the Identity Server.
- Changes to the files in the dropins and webapps directories, to confirm the patched files stay in place.
- Updates to the vendor advisory and to CISA KEV for any change in exploitation status.
