Azure API Management Flaw Exploited: Rotate Secrets
Contents6
On 4 December 2026, the US CISA added a vulnerability, CVE-2026-139934, in Microsoft's cloud service Azure API Management to its list of vulnerabilities known to be exploited in real attacks (KEV). According to Microsoft, exploitation has been detected (Exploitation Detected), and the severity is the highest level, Critical (9.8 on CVSS 3.1). A person who is not logged in may be able to carry out administrative operations, including the management of secrets, just by sending specially crafted traffic.
What makes this case different is that it does not end with a software update. Microsoft explains that it fixed the problem on the service side on 19 November. However, passwords and keys that may have leaked before then remain valid as they are. What organizations using the service need to do is rotate their secrets and investigate suspicious activity.
Key points of this article
- The affected product is the Classic tiers (Developer, Basic, Standard, Premium) of API Management. The v2 tiers and the Consumption tier are described as not affected.
- The fix was already applied by Microsoft on the service side on 19 November. There is no update program to download and install.
- Even so, secrets stored inside your APIs (keys, passwords, connection strings and so on), and the secrets in Key Vault that they refer to, need to be rotated. To check whether you are affected, use the notice that arrived in Azure Service Health (tracking ID MZK9-GH0).
- The CISA deadline is 7 December (for US federal agencies). Companies in Japan have no deadline, but because exploitation has been detected, we recommend acting just as quickly.
9.8
CVSS 3.1 base score (Critical). Traffic alone is enough, with no login or user action needed
11/19
The date Microsoft says it fixed the problem on the service side
12/7
The response deadline CISA set in KEV (for US federal agencies)
Terms explained
Azure API Management (APIM) = a cloud service that manages, in one place, the entrance and exit of the APIs that connect your own systems and other companies' services. It holds user authentication, traffic limits, connection details for the systems behind it, and more.
Classic tiers = the conventional plans of APIM (Developer, Basic, Standard, Premium). They are separate from the newer v2 tiers.
Key Vault = an Azure service that stores secrets such as passwords and keys safely. APIM may refer to and use secrets placed there.
Rotation = changing a password or key to a new one and making the old one unusable.
What is happening
According to the Microsoft Security Response Center (MSRC), the details are as follows.
| Item | Details |
|---|---|
| ID | CVE-2026-139934 (published 4 December 2026) |
| Type | Elevation of privilege caused by improper authorization (CWE-863) |
| How the attack works | A party without authentication sends specially crafted traffic to an affected APIM instance |
| What could happen | Administrative operations are carried out, including the management of secrets |
| Exploitation status | Exploitation detected (Exploitation Detected). However, whether the details of the vulnerability have been made public (Publicly disclosed) is No |
| Affected | APIM Classic (Developer, Basic, Standard, Premium) |
| Not affected | APIM v2 tiers, Consumption tier |
In its KEV note, CISA asks organizations to follow Microsoft's additional guidance, rotate the affected credentials and secrets, and check whether anything unexpected has happened in the systems and services those credentials can reach. In CISA's assessment, exploitation is active, automation is yes (possible), and the technical impact is total.
Exploitation status and what is not known (as of 5 December 2026)
We could confirm that exploitation has been detected in both the Microsoft security guide and the CISA KEV. On the other hand, the official information does not say what kind of attacker targeted which instances, since when, or how. The conditions that decide whether you are affected (exposure criteria) are said to be written in the Azure Service Health notice, and this article could not confirm their content. We found nothing about this case in the lists of IPA (Information-technology Promotion Agency, Japan) important security information and JPCERT/CC alerts.
What to do first: three steps in order
- Find the affected instances
Open API Management services in the Azure portal and check whether the plan (tier) is Classic. If you have several subscriptions, you can list them all at once with Azure Resource Graph (
az graph query). v2 and Consumption are not affected. - Look for the Azure Service Health notice
Microsoft explains that it sent Classic tier users a notice titled "Important security information about Azure API Management Classic tiers" (tracking ID MZK9-GH0) on 21 November and again, as an update, on 24 November. It describes the conditions for being affected and what to do right away. If you missed the notice, check it now.
- Rotate the secrets
For any instance the notice says is affected, rotate in the order described in the next section. If you already rotated after the first or second notice, you do not need to rotate again (Microsoft's explanation).
What to rotate
In the guide it published on 21 November, "Rotating credentials in Azure API Management", Microsoft lists the following types. APIM may hold items you no longer remember, so make a list before you start.
| Type | Where it is |
|---|---|
| Subscription keys | APIM APIs, then Subscriptions. The keys you give to API users |
| Secrets in Named values | APIs, then Named values. Includes those that refer to Key Vault |
| Backend credentials | APIs, then Backends. Headers, queries, client certificates |
| OAuth 2.0 and OpenID Connect client secrets | OAuth 2.0 + OpenID Connect in the developer portal. Update them in the app registration on the Microsoft Entra side |
| Connection strings | Logger settings (for example, sending logs to Event Hubs) |
| Credentials written directly in policies | Global, API, operation and product policies |
| Legacy management access keys | If you use the Direct Management API |
The order of rotation is: create the new value at its source, put the new value into APIM, check that the API works, then disable the old value. Note that changing a value inside APIM does not disable the old key at its source (the backend service or the authentication platform). The rotation is complete only when you have also revoked the old key at the source.
Microsoft also advises you to review whether there are any subscriptions, users, policies or backends that you did not create yourselves.
Investigating after rotation
In addition to rotation, Microsoft and CISA ask you to check whether anything unexpected happened in the systems and services those secrets can reach. Review your logs from the following viewpoints.
- APIM itself: any administrative operations you do not recognize, or newly added APIs, policies, backends or users.
- Systems behind it: any access at unfamiliar times, from unfamiliar places or in unfamiliar volumes to systems that can be called with the APIM keys.
- Key Vault: any suspicious entries in the records of reads of the secrets that APIM referred to.
If logs are kept only for a short time, you may not be able to investigate. Save the records you need to another location now.
For a response that assumes keys have leaked, our article on another cloud service, What to check after the KARTE unauthorized access, is also a useful reference.
Leave it to Digi Dinos
Digi Dinos supports DX, security, and the operation and maintenance of systems. We are ISO 27001 certified and also operate cloud and server environments.
- Checking the current state: We identify your APIM instances and the secrets stored in them, and list what needs to be rotated.
- Planning the rotation: We decide an order that keeps the APIs running, including the systems that use them.
- System takeover: We can also take over the operation of systems whose contract with the company that built them has ended.
Even just asking "Is our APIM affected?" is welcome (free consultation)
From checking whether you are affected to how to proceed with rotating secrets, we will guide you in Japanese.
Frequently asked questions
If Microsoft has fixed it, don't we need to do anything?
No. Microsoft explains that it fixed the problem on the service side on 19 November, but that credentials that leaked earlier are not made invalid by that fix. That is why the secrets need to be rotated.
We use the v2 tiers or the Consumption tier. Are we affected?
Microsoft says the v2 tiers and the Consumption tier are not affected. Note that this article is based on information about the Classic tiers. If you are unsure which plan you have, check the tier name in the Azure portal.
We already rotated our keys in November. Do we need to do it again?
Microsoft explains that credentials rotated after the first (21 November) or second (24 November) Azure Service Health notice do not need to be rotated again. Credentials rotated before the notices could be affected.
Will API users be cut off if we rotate subscription keys?
Microsoft's guide describes this order: first switch users to the secondary key and check, regenerate the primary key, confirm that users have switched, and then regenerate the secondary key. Tell your users beforehand and decide the switchover period.
References and sources (checked 5 December 2026)
- Microsoft Security Update Guide, CVE-2026-139934 Azure API Management Elevation of Privilege Vulnerability (4 December 2026)
- Microsoft Community Hub, Rotating credentials in Azure API Management (21 November 2026, updated 22 November)
- CISA, Known Exploited Vulnerabilities Catalog, CVE-2026-139934 (added 4 December 2026), CVE-2026-139934 (CISA assessment)
- IPA (Information-technology Promotion Agency, Japan), Important security information (fiscal 2026), JPCERT/CC, Alerts (2026) (neither mentions this case)