CVE-2026-139934: Azure API Management Classic was fixed in November, but stolen credentials work until you rotate them
CISA added an Azure API Management Classic flaw to its exploited list on December 4 and gave federal agencies until December 7. Microsoft closed the hole on November 19, but it says the fix does not cancel any credential taken before then. This page puts the check and the rotation steps in one place.
Read the original first: https://techcommunity.microsoft.com/blog/integrationsonazureblog/rotating-credentials-in-azure-api-management/4575478
In one minute
- Azure API Management (APIM) is the front door many companies put in front of their APIs. It stores keys and secrets so it can call the systems behind it.
- CVE-2026-139934 let an attacker with no login send crafted requests to APIM Classic instances and run admin actions, including reading secrets. CISA added it to its exploited list on December 4.
- Microsoft says it fixed the service on November 19. There is nothing to download.
- The catch: the fix does not cancel credentials that were read before it. Those still work until you replace them.
- Norway's NSM says an attacker went looking for access tokens, secrets and named values, and the Norwegian energy sector noticed it first.
- Rotate in this order: make the new credential where it was issued, update APIM, test, then revoke the old one.
What happened
CISA's catalog text says the flaw lets an unauthenticated remote attacker send specially crafted requests to APIM Classic instances and perform unauthorized admin operations, including secrets management. The Hacker News reports a CVSS score of 9.8.
Norway's National Security Authority (NSM) posted a notice on November 20. It says an unknown actor actively went after access tokens, secrets and named values in APIM, and that it is still unclear how widely the flaw was used.
The Cloud Security Alliance's timeline says Microsoft found the issue on November 18 and closed the access path on November 19. CISA added the CVE to its Known Exploited Vulnerabilities catalog on December 4, with a federal deadline of December 7.
Who is affected
Only the Classic tiers. The Cloud Security Alliance lists Classic Developer, Basic, Standard and Premium as affected, and Classic Consumption and all v2 tiers as not affected. The Hacker News reports the same split.
The Cloud Security Alliance reports that Microsoft describes exposure as limited to Classic instances not set up the way its security guidance says. The note names two such setups: no recommended network integration, and secrets stored inside APIM instead of in Azure Key Vault.
Step 1: check that your gateway has the fix
NSM says to open this address on each gateway and read the RuntimeVersion value:
curl -s https://<your-gateway-hostname>/internal-status-0123456789abcdef
- On 0.52.x, the fix is in if the last number is 31936 or higher.
- On 0.53.x, the fix is in if the last number is 31938 or higher.
- NSM says lower numbers are still vulnerable. If yours is lower, contact Microsoft.
To list your instances first, Microsoft's guide uses the Azure CLI:
az apim list --output table
Step 2: rotate, in the right order
Microsoft's guide is blunt about the trap: updating the value in API Management does not revoke the old credential where it was issued. The old one keeps working until you revoke it at the source.
Microsoft's order, for credentials where old and new can both work for a while:
- Make the replacement at the issuer (the backend service or the identity provider).
- Update API Management with the new secret.
- Test your APIs.
- Revoke the old secret.
What to rotate, from Microsoft's list: subscription keys, named values that hold secrets, backend credentials (headers, query parameters, client certificates), OAuth 2.0 and OpenID Connect client secrets, connection strings such as Event Hubs loggers, credentials written straight into policies, and the legacy management API access keys.
For subscription keys, Microsoft says to move callers to the secondary key, regenerate the primary, test it, then regenerate the secondary once callers have switched.
To see which named values you have:
az apim nv list --resource-group <group> --service-name <name> --output table
Step 3: look for signs of use
These checks come from the Cloud Security Alliance's research note, not from Microsoft:
- In AzureActivity, look for APIM secret-listing operations such as namedValues/listValue and subscriptions/listSecrets.
- Look for new subscriptions you did not create and for requests with tracing turned on.
- In service principal sign-in logs, look for APIM-held app secrets used from new IP addresses.
- Check AI provider usage and bills for traffic that does not match your gateway's numbers.
The note warns that a clean activity log does not rule out exposure, because calls through the older direct management API do not show up there.
Make the next rotation easier
Microsoft Learn recommends Key Vault references for secrets in named values. A secret changed in Key Vault reaches API Management within four hours, or at once with a manual refresh.
Enter the Key Vault secret identifier without a version. Microsoft Learn says a versioned identifier will not rotate on its own.
Who is affected
| Case | Status |
|---|---|
| APIM Classic Developer, Basic, Standard, Premium | Affected; Microsoft fixed the service on November 19. Credentials read before then still work until rotated. |
| APIM Classic Consumption | Not affected (Cloud Security Alliance, The Hacker News). |
| APIM v2 tiers | Not affected (Cloud Security Alliance, The Hacker News). |
| Gateway runtime 0.52.x | Fixed at build 31936 or higher (NSM). |
| Gateway runtime 0.53.x | Fixed at build 31938 or higher (NSM). |
What to do
- List every APIM instance, including test and forgotten ones, and note which are Classic.
- Check each gateway's RuntimeVersion against NSM's numbers.
- Treat every secret a Classic instance held as exposed, and rotate it at its issuer first.
- Revoke the old credential only after the new one works.
- Search your logs for secret-listing calls and new subscriptions.
- Move secrets to Key Vault references without a version number.
What is still unknown
- Microsoft has not published the root cause.
- How many instances were read, and by whom.
- Whether any data behind the stolen credentials was used. Norway's NSM says it has no evidence so far that deliveries at Norwegian organizations were hit.
Sources
- Microsoft Azure Integration Services blog: Rotating credentials in Azure API Management (Nov. 21, 2026) - the original report
- CISA: CISA Adds Three Known Exploited Vulnerabilities to Catalog (Dec. 4, 2026)
- NSM: NSM deler tiltak mot sårbarhet i Azure API Management (Nov. 20, 2026, updated Nov. 23)
- Cloud Security Alliance: Azure API Management Classic Exploitation research note
- The Hacker News: CISA Warns of 3 Critical PingIDM and Azure API Management Flaws Under Active Exploitation
- Microsoft Learn: How to use named values in Azure API Management policies