On 4 December 2026, CISA added CVE-2026-139934 to its Known Exploited Vulnerabilities catalog and set a remediation deadline of 7 December. Microsoft had closed the underlying access path on 19 November. The two-week gap matters because the fix stopped the requests without invalidating anything they may have read.

The flaw was a 9.8-rated authorization error in Azure API Management Classic. It allowed an unauthenticated attacker to perform administrative operations, including secrets management, against affected instances. Microsoft’s platform fix stopped the requests. It did not invalidate the credentials that may have been read before the fix, and it did not tell any customer whether their secrets had been used.

Norway’s National Security Authority put the consequence plainly in its 23 November update: anyone running Azure API Management should assume their secrets and named values are compromised, and rotate all tokens and secrets. Equinor and Skagerak Energi were among the companies NSM named as affected. The agency said it had no indication at that point that the activity had affected companies’ deliveries, and that the extent of exploitation remained uncertain.

TL;DR

  • CVE-2026-139934 is a CVSS 9.8 incorrect-authorization flaw in Azure API Management Classic Developer, Basic, Standard, and Premium. The v2 and Consumption tiers are not affected.
  • Microsoft identified the issue on 18 November 2026 and closed the access path on 19 November. CISA added it to KEV on 4 December with a 7 December due date.
  • The platform fix does not revoke customer credentials. Microsoft’s guidance covers secrets in APIM and Key Vault secrets referenced by APIM; NSM’s advice is broader and assumes access tokens, secrets, and named values were compromised.
  • Rotating the value in APIM is not enough. The old credential remains valid at the identity provider, backend, or Key Vault until it is revoked there, and a new Key Vault version is not proof that the gateway is using it.
  • Hunt for use of the old credentials in identity-provider sign-in logs, Key Vault audit logs, and backend authentication failures. The exploitation itself may never appear in your APIM logs.

Why this matters

An API gateway is a credential concentrator. It holds the keys that let it call backends, the subscription keys that identify its consumers, and often the client secrets for the identity providers that protect it. A flaw in the gateway’s management layer reaches every system those credentials can reach.

That is what makes the Norwegian reporting worth reading closely. NSM said an unknown actor had been actively looking for access tokens, secrets, and named values in APIM. It named two energy companies among the affected organizations and said the vulnerability touched several sectors in Norway and entities outside the country. NSM described the national cyber risk level as high.

The affected population is not limited to Norway. Microsoft’s advisory covers Classic instances in any tenant. The Norwegian cases are the ones that have been publicly described, not the only ones that could exist.

CISA’s KEV entry gives US federal agencies until 7 December to act. For everyone else the date is a useful forcing function: if you have a Classic instance and have not rotated since the November notifications, you are still carrying the exposure.

What is confirmed

DateEvent
18 November 2026Microsoft identifies the issue in APIM Classic
19 November 2026Microsoft closes the access path on the platform
20 November 2026NSM publishes its advisory; Equinor and Skagerak Energi named among affected companies
21 November 2026Microsoft publishes credential-rotation guidance and the first Service Health notification
23 November 2026NSM updates its advisory: assume secrets and named values are compromised; publishes RuntimeVersion thresholds
24 November 2026Microsoft sends an updated Service Health notification, tracking ID MZK9-GH0
3 December 2026CVE-2026-139934 is published with a CVSS 3.1 score of 9.8
4 December 2026CISA adds the CVE to KEV; due date 7 December

The affected products are the Classic tiers: Developer, Basic, Standard, and Premium. The v2 tiers and the Consumption tier are not affected. There is no customer-installable patch, because the vulnerable component was in Microsoft’s service. Microsoft’s FAQ says the platform remediation on 19 November closed the access path but “does not invalidate previously exposed credentials.” That sentence defines the remediation work: the vulnerable path is gone, but the credentials it exposed are not.

Microsoft’s guidance tells customers with exposed instances to rotate credentials and secrets stored in APIM, rotate secrets stored in Azure Key Vault that are referenced by APIM, and investigate unexpected activity on the systems those credentials grant access to. It also says credentials and secrets rotated after the first or second Service Health notification do not need to be rotated again, which gives organizations a way to bound the work.

The material that may have been accessed, according to Microsoft’s customer advisory as reported by The Hacker News, includes secrets stored in Named Values, client secrets for identity providers, client secrets for OpenID Connect providers, subscription keys, and tokens used to call direct management APIs. NSM’s advisory names access tokens, secrets, and named values. The two lists overlap; neither is a complete inventory of what a particular APIM instance held.

How the exposure worked

The CVE describes an incorrect authorization condition, CWE-863, in Azure API Management. Microsoft’s public description says an unauthorized attacker could elevate privileges over a network. Its FAQ adds that a crafted request could be used to perform administrative operations, including secrets management, against APIM services. CISA’s KEV description says the attacker is unauthenticated and that the requests target APIM Classic instances.

Microsoft has not released the request path or a technical root-cause analysis. The public record describes the impact, not the request that produced it. Microsoft’s customer advisory, as quoted by The Hacker News, ties exposure to instances that were not configured according to documented security best practices. That wording leaves an important question open: which configuration condition turned the authorization bug into a reachable path to secrets. Microsoft’s Service Health notification contains the exposure criteria it has shared with customers, and that notification, not an external guess, is the right scoping source.

There is a tension in the public guidance. Microsoft’s wording suggests a configuration-dependent exposure. NSM’s advice is unconditional: every APIM user should assume secrets and named values are gone. For a defender, the safe reading is NSM’s. The cost of rotating a credential that was not exposed is operational work. The cost of leaving an exposed credential live is whatever the credential can reach.

The flaw was in the authorization check on management requests. Those requests could reach administrative operations, including secrets management. Once a secret is copied, the rest of the attack happens outside APIM, against the system that issued or accepts that secret. That is why the exploit may leave no trace in the gateway’s request logs: the gateway was the source of the credential, not the target.

The rotation trap

Most incident-response playbooks treat “rotate the secret” as one action. In APIM, changing the value, updating the gateway, and revoking the old credential are separate actions, and the order matters.

A named value can hold a secret directly, or it can reference a secret in Key Vault. Overwriting the value in APIM changes what the gateway sends on its next request. It does not revoke the old value at the backend, the identity provider, or Key Vault. If an attacker copied the old value, it keeps working until the issuer invalidates it.

Key Vault adds a second trap. A new secret version is not necessarily the version APIM is using yet. The gateway may hold a cached value, and the old version may remain enabled. Disabling the old version before the new one is live can take down the API.

Subscription keys have a similar shape. APIM gives each subscription a primary and secondary key so you can roll consumers without downtime. Regenerating both at once breaks every consumer that has not been updated. Regenerating one without an inventory tells you that some consumer broke, but not which one.

The same logic applies to identity-provider client secrets. Create the replacement, distribute it, verify sign-in, and only then remove the old secret.

What You Can Do Today

The remaining work is to establish what the instance held, rotate the credentials that matter, and prove the old values no longer work.

1. Scope the exposure

List every APIM instance and its tier. Focus on Classic Developer, Basic, Standard, and Premium. The v2 SKUs appear as BasicV2, StandardV2, or PremiumV2, and Consumption is also outside the affected set. The Azure CLI gives the starting list:

Terminal window
az apim list --query "[].{name:name, resourceGroup:resourceGroup, sku:sku.name, gatewayUrl:gatewayUrl}" -o table

Check the runtime version with NSM’s endpoint: open https://<your-gateway-hostname>/internal-status-0123456789abcdef and read RuntimeVersion. For 0.52.x, the build is patched at 31936 or higher; for 0.53.x, at 31938 or higher. Other patterns, such as 0.53.4608.0 or 0.52.4150.0, indicate v2 or Consumption and are outside this threshold. A lower number on a Classic instance is still vulnerable in NSM’s assessment; contact Microsoft if the instance has not been updated.

Then read the Service Health notifications under tracking ID MZK9-GH0, sent on 21 and 24 November. The notification contains the exposure criteria and the impacted-resources view. If the instance appears there, treat it as exposed. If it does not, do not treat that as proof of safety until you have checked the configuration and the credential inventory.

Write down the instance name, tier, runtime version, Service Health result, owner, and the date. If the answer is “no Classic instance”, that evidence closes the ticket. If the answer is “Classic instance, not sure”, treat it as exposed and move to the inventory.

2. Inventory what the instance can expose

Start with APIM named values, including Key Vault references:

Terminal window
az apim nv list -g <resource-group> -n <apim-name> -o table

For a value stored directly in APIM, az apim nv show-secret can retrieve it for verification. Treat its output as sensitive: run it in a controlled session, do not paste it into a ticket, and do not leave it in shell history.

Then add the rest:

  • Subscriptions and their keys, under API Management → Subscriptions in the portal.
  • Identity-provider and OIDC client secrets used by the instance.
  • Backend credentials in policies: basic-auth headers, API keys, connection strings, SAS tokens.
  • Tokens used to call the direct management API.
  • Client certificates the instance presents to a backend.

Search the policy definitions for {{named-value}} references, including policy fragments, so you know which APIs and backends depend on each value before you change it.

For each item, record the issuer, the acceptor, the owner, the systems it unlocks, and the last rotation date. The acceptor is the system that validates the credential, and it is usually not APIM. A named value called backend-key tells you nothing. payments-api-key, issued by Payments, accepted by payments.example.com, owner: Payments platform tells you what to rotate and whom to call.

3. Rotate in blast-radius order

Rotate the credentials that can write or administer first. Identity-provider and OIDC client secrets, Key Vault secrets used for backend authentication, and backend administrative keys come before subscription keys, which break consumers when they change.

Microsoft’s rotation guide is the authoritative procedure for the portal steps. The sequence below is the order to apply it and the evidence to keep.

Use the same six steps for each credential:

  1. Create the replacement at the issuer. Keep the old credential valid for now.
  2. Update APIM: the named value, the Key Vault reference, or the policy that carries the credential.
  3. Test the gateway path. Confirm the backend or identity provider accepts the new value.
  4. Revoke or disable the old credential at the issuer.
  5. Test the old value. It must fail.
  6. Record the time, credential, issuer, acceptor, evidence, and owner.
CredentialWhat to do, and how to prove the old value is dead
Entra ID or OIDC client secretCreate a new secret in the app registration or external IdP. Update the APIM named value or policy. Test the gateway. Remove the old secret, then confirm a token request with it returns invalid_client.
Backend API key or basic-auth credentialIssue a new key at the backend, update the APIM named value or policy, and test. Revoke the old key at the backend, then confirm it returns 401 or 403 while the new key returns 200.
Key Vault secretCreate a new secret version in Key Vault. Refresh the APIM reference and confirm the gateway serves the new version. If the value is a backend credential, rotate it at the backend too; disabling the old Key Vault version does not revoke the old key.
Subscription keyMove consumers to the secondary key, regenerate the primary, move consumers again, then regenerate the secondary. The old key must return 401; the new key must return 200.
Direct management API tokenReissue or revoke the token at its issuer. Update the automation or runbook that uses it, then confirm a management call with the old token fails.

APIM is a store and a sender, not the issuer for most of these credentials. Changing a named value changes what the gateway sends. It does not revoke the old value at the backend or identity provider. The system that accepts the credential has to invalidate it.

Key Vault has a related trap. A new secret version is not necessarily the version APIM is using yet. Refresh the APIM reference, confirm the gateway serves the new version, then disable the old version. If the secret is a backend API key, disabling the old Key Vault version is not enough: the backend must revoke the old key.

For Key Vault, the CLI sequence is:

Terminal window
az keyvault secret set --vault-name <vault> --name <secret> --value "<new-value>"
az keyvault secret list-versions --vault-name <vault> --name <secret> -o table
az keyvault secret set-attributes --vault-name <vault> --name <secret> --version <old-version> --enabled false

4. Prove the old credential is dead

A rotation ticket is not proof. Run a negative test with the old value from a controlled host:

  • Subscription key: curl -i -H "Ocp-Apim-Subscription-Key: <old-key>" https://<gateway>/<api> must return 401 or 403.
  • Entra ID or OIDC client secret: request a token with the old secret. The identity provider must reject it with invalid_client.
  • Backend key: call the backend directly with the old key. It must return 401 or 403.
  • Key Vault: confirm the old version is disabled and the gateway is serving the new version.

Keep the output, timestamp, operator, and instance. A successful test with the new value is not enough; the old value has to fail.

5. Hunt, and contain if you find use

Do not assume the exploitation appears in your APIM logs. The vulnerable layer was Microsoft’s service, so the customer-visible footprint is downstream use of a stolen credential.

  • Entra ID sign-in logs: filter service-principal sign-ins for the app registrations whose secrets were in APIM. Look for unfamiliar IPs, user agents, or resource access from 18 November onward. Check which credential was used, not only which application.
  • Key Vault audit logs: look for SecretGet calls from identities other than the APIM managed identity or the expected applications, including calls to old versions after rotation.
  • Backend and API logs: look for the old subscription key or client ID used from new addresses, 401-to-200 transitions, or a sudden change in caller ASN.
  • Azure Activity Log: review APIM resource changes made by unexpected principals.
  • Identity provider audit logs: new client secrets, new app roles, new consent grants, or new service principals created around the same window.

If you find use, preserve the logs before you disable anything, then treat it as an identity incident:

  1. Disable the affected identity or subscription and revoke its tokens and keys.
  2. Rotate every credential that identity could reach, not only the one you found.
  3. Review what the downstream system exposed: data read, changes made, and new persistence such as app secrets, subscriptions, or role assignments.
  4. Notify per your incident process. Norwegian organizations should contact NSM if they see signs of compromise or confirm it; NSM asks for that.
  5. If personal data was accessed, start the regulatory assessment.

6. If you cannot finish today

Rotation is not always possible in one maintenance window. Prioritize credentials with write or administrative scope, credentials that reach production data, credentials shared across teams or environments, and credentials with no expiry.

Interim controls are not a substitute for rotation, but they reduce the window:

  • Disable unused subscriptions and identities.
  • Restrict backend access to known networks where the architecture allows it.
  • Alert on the old key IDs and client IDs.
  • Put a dated completion plan in the ticket and assign an owner.

7. Reduce the next blast radius

After the rotation, fix the design that made it slow:

  • Store secrets in Key Vault and reference them from APIM instead of storing the literal value in a named value.
  • Use managed identities for Azure-to-Azure calls where the backend supports them.
  • Use one credential per backend and environment; no shared keys between teams.
  • Set expiry dates and put the rotation on a calendar.
  • Alert on new client secrets, Key Vault secret reads, and subscription key regeneration.
  • Keep an inventory with owner, issuer, acceptor, and last rotation.

The part that generalizes

The lesson applies beyond Azure. A control-plane fix closes the path. It does not restore the confidentiality of anything that crossed it. The same question follows every cloud control-plane exposure and every leaked CI secret: what could the attacker read, and where else is that value still valid?

Teams answer that question well when they can name the issuer of each secret, the acceptor, and the last time it was rotated. They answer it badly when the only inventory is the place the secret was stored. APIM is a reminder of how many trust relationships sit behind one gateway. Microsoft closed the path on 19 November. The credentials that crossed it remain valid until their owners revoke them.

Sources

Sources were checked on 5 December 2026.