Introduction
An authorization flaw in Azure API Management (APIM) let unauthorized attackers reach management functionality on Classic tier instances and read stored secrets, and Norway's National Security Authority (NSM) has named Equinor and Skagerak Energi among the affected organizations. Microsoft closed the hole on its platform on November 19, 2026, but the fix does not invalidate anything read before that date, so most of the response work for exposed customers happens in the systems behind APIM rather than in APIM itself.
Microsoft tracks the issue as CVE-2026-139934, rates it CVSS 3.1 9.8 (temporal 9.1), and marks it as Exploitation Detected. The rest of this post is a brief summary of what is publicly known: the root cause as far as it has been disclosed, the service-side fix, how to check your gateways, and how to hunt for misuse of credentials that may already be gone.
Technical information
Root cause
Azure API Management is a cloud service for publishing, securing, monitoring and managing APIs. To do that, an instance holds secrets: credentials for identity providers, keys for API consumers, and values used in policies to reach backends.
The weakness is CWE-863, Incorrect Authorization. Microsoft states that an unauthorized attacker could send specially crafted network requests to an affected APIM instance and perform administrative operations, including secrets management. Reporting on Microsoft's customer notification describes the remediated path as unauthorized access to management functionality. Management operations that should have required authorization were reachable without it.
Microsoft has not published root cause details, the exact requests, the affected endpoint, or code-level information. Two pieces of community analysis add context, and both should be treated with care:
- Community analysis points to the old direct Management REST API as the risky path. That API authenticates with a
SharedAccessSignaturetoken instead of Entra ID, so its calls never reach the ARM Activity log. According to Anders Kristiansen's guide, Microsoft retired that endpoint in March 2025, but retired does not necessarily mean removed. - An administrator on Reddit claimed the bypass was in a deprecated legacy API that produced no customer-visible logs. BleepingComputer was unable to confirm this. We treat it as unconfirmed.
What could be read
Microsoft's customer notification identified the following as potentially exposed:
- Named Values secrets
- Identity provider and OpenID Connect client secrets
- Subscription keys
- Tokens for direct management APIs
Depending on their permissions, these credentials could permit access to additional applications, services or backend systems. That is a potential consequence. It is not evidence that every affected customer experienced such access.
CVSS breakdown
Microsoft's vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
The base metrics describe network access, low attack complexity, no privileges or user interaction required, unchanged scope, and high impact on confidentiality, integrity and availability. The temporal metrics mark exploit code maturity as functional (E:F), remediation as an official fix (RL:O), and report confidence as confirmed (RC:C). NVD displays Microsoft's score and notes that its own assessment was not yet available.
Attack flow
Based on the advisory, the customer notification, and NSM's reporting, the sequence looks like this:
- The attacker targets a network-reachable APIM instance on a Classic tier (Developer, Basic, Standard or Premium).
- The attacker sends specially crafted requests that reach management functionality without passing proper authorization checks.
- Through that access, the attacker performs administrative operations, including secrets management, and reads material such as Named Values, identity provider and OpenID Connect client secrets, subscription keys, and management API tokens. NSM reported that an unknown actor actively sought exactly this: APIM access tokens, secrets and named values.
- The attacker uses the harvested credentials directly against the services they unlock, outside APIM. The Reddit administrator mentioned above said a valid admin token was used against their Key Vaults in an unusual pattern (also unverified).
Step 4 is why the platform fix alone does not close the incident. Credentials taken in steps 2 and 3 keep working until they are rotated at their issuer.
Exploitation status
Microsoft marked the vulnerability as exploited at original publication. The functional exploit maturity rating is consistent with working exploit code existing, but no public exploit has been identified. NSM identified Equinor and Skagerak Energi among affected organizations and said multiple sectors in Norway and other countries were affected, while noting the extent of exploitation remained uncertain. BleepingComputer linked those attacks to the APIM incident under Service Health tracking ID MZK9-GH0. No actor identity, affiliation, motive, indicator list or complete victim count has been published.
Timeline
- November 18, 2026: Microsoft reportedly identified the flaw.
- November 19, 2026: Microsoft remediated the platform issue.
- November 21, 2026: Service Health notification MZK9-GH0 sent.
- November 24, 2026: MZK9-GH0 updated.
- December 3, 2026: MSRC advisory released.
- December 4, 2026: NVD publication.
Patch information
What kind of fix this is. APIM is a managed cloud service, so Microsoft fixed CVE-2026-139934 inside its own platform. There is nothing for customers to download or install, no public commit or diff, and no KB article. The MSRC Security Update Guide entry for Azure API Management (APIM) shows a dash in the Article, Download and Build Number columns, which is how Microsoft usually marks a service-side fix. The RL:O (Remediation Level: Official Fix) in the temporal vector agrees: Microsoft considers the vendor fix complete even though customers have no package to apply.
What changed. Microsoft's MSRC FAQ says it "remediated the platform issue on November 19, 2026." According to the MZK9-GH0 Service Health advisory, as reported by BleepingComputer, the fix did two things:
- It closed the unauthorized management-plane access path. Crafted network requests to an APIM Classic instance could previously reach management functions that should have required authorization. Those operations now go through proper authorization checks.
- It rotated keys and credentials that Microsoft controls, where appropriate, so platform-side material an attacker might have used no longer works.
Scope. The vulnerable code path, and therefore the fix, applies to APIM Classic Developer, Basic, Standard and Premium tiers. APIM v2 and Consumption tiers were never affected. Microsoft told BleepingComputer that the November 19 fix was fully rolled out to every Microsoft-hosted APIM instance and needed no customer action.
Verifying the fix on your gateway. NSM still advises organizations to confirm their own instances were updated, and Microsoft did not explain to BleepingComputer why NSM was still telling people to check. NSM's check is to open the following URL on your gateway and read the RuntimeVersion value:
https://<your gateway hostname>/internal-status-0123456789abcdef
Interpret the result as follows:
0.52.xwith last number 31936 or higher: patched.0.53.xwith last number 31938 or higher: patched.- Other patterns (for example
0.53.4608.0or0.52.4150.0): v2 or Consumption tier. The threshold does not apply and the instance is not vulnerable. - Lower numbers on the 0.52 or 0.53 Classic branches: still vulnerable. NSM says to contact your provider.
These build numbers are the only fixed-version markers published for this CVE, and they let you verify a gateway directly rather than relying only on Microsoft's statement. BleepingComputer reported that it was unclear whether these runtime updates were separate from Microsoft's initial mitigation.
What the fix does not cover. Microsoft states the remediation "does not automatically invalidate credentials that may have been accessed before the fix was deployed." Anything read before November 19 (Named Values secrets, identity provider and OpenID Connect client secrets, subscription keys, management API tokens) still works afterward. For exposed instances, Microsoft recommends:
- Rotate credentials and secrets stored in APIM, plus Azure Key Vault secrets referenced by APIM. Credentials already rotated after either the first or second notification under MZK9-GH0 do not need rotating again.
- Use a safe rotation sequence. Where old and new credentials can coexist, create the replacement at the issuer, update APIM, test the APIs, then revoke the old secret. Updating APIM alone does not revoke anything at the issuer. For subscription keys, move callers between the secondary and primary keys and verify each transition before regenerating the other key.
- Investigate unexpected activity on the systems and services those credentials grant access to, and review available logs for unauthorized access.
- Longer term, prefer managed identities over keys and connection strings where supported, store secrets in Azure Key Vault referenced as named values, and automate regular rotation. These practices do not replace the exposure response above.
Detection methods
Why signatures will not help here. No network signature, Nuclei template, YARA or Sigma rule, or IoC list has been published, and OffSeq's tracker shows no public Nuclei template. If the risky path is the legacy direct Management REST API, its calls authenticate with a SharedAccessSignature token and never reach the ARM Activity log. Detection therefore has three parts: confirm exposure, check patch state and configuration, and look for stolen credentials being used behind APIM. This matches Microsoft's guidance to investigate "any unexpected activity on the systems and services these credentials and secrets grant access to."
Step 1: Find out whether Microsoft flagged your instances
The MZK9-GH0 notification holds the exposure criteria. Using a Classic tier does not by itself establish that a given instance was exposed.
- In the portal, go to Service Health, Security Advisories, Impacted Resources.
- At scale, call the Resource Health
listSecurityAdvisoryImpactedResourcesendpoint at subscription or tenant scope with the tracking ID in the path. - Security advisory details are RBAC restricted. You need Service Health Security Reader, Subscription Owner or Contributor, Security Admin or Global Admin at tenant level, or a role with both
Microsoft.ResourceHealth/events/fetchEventDetails/actionandMicrosoft.ResourceHealth/events/listSecurityAdvisoryImpactedResources/action. Without these, an empty view does not mean you are unaffected. - Triage by checking
sku.nameon eachMicrosoft.ApiManagement/serviceresource, since v2 and Consumption are out of scope. Include forgotten dev and test instances.
Step 2: Check patch state and risky configuration
- Read
RuntimeVersionfrom the internal status endpoint described under Patch information and compare it with the NSM thresholds. - Per Anders Kristiansen's guide, confirm Management API, Enable Management REST API is set to No on every instance.
- Identify the secrets most at risk by listing named values and looking for ones marked secret but not backed by Key Vault:
az apim nv list
Step 3: Make sure the logs exist before you hunt
Kristiansen's hunting map relies on six log sources. For each, confirm it is enabled, when collection started, its retention, and whether it lands in resource-specific or Azure diagnostics mode. Column names differ between modes, so a query written for one returns nothing on the other.
AzureActivity: ARM management actions on APIM.ApiManagementGatewayLogs(orAzureDiagnostics): which subscription IDs called which APIs, from where, and whether tracing was requested.APIMDevPortalAuditDiagnosticLog: developer portal use. It has no source IP column and stores a hashed user ID.AADServicePrincipalSignInLogs: use of app credentials.AZKVAuditLogs(orAzureDiagnostics): who read or listed the secrets APIM references.MicrosoftGraphActivityLogs: what an app did in Graph after signing in. Requires Entra ID P1 or P2.
Before querying, collect the APIM resource IDs, the principal (object) ID of each APIM managed identity, the client IDs of apps whose secrets are stored in APIM, and the Key Vaults that APIM named values point to.
Step 4: Hunt from APIM outward
The queries for each of these are in Kristiansen's blog post.
- Control-plane secret reads and trust changes. Search
AzureActivityfornamedvalues/listvalue/action,subscriptions/listsecrets/action,tenant/listsecrets/actionandidentityproviders/listsecrets/action, plus policy writes and new users, identity providers or portal settings. Group by caller and source IP and check each caller against known admins and pipelines. This catches abuse through ARM only. It will not see direct Management API calls. - A developer portal you thought was dead. Summarize 30 days of
APIMDevPortalAuditDiagnosticLogper user per day. Flag POST, PUT or PATCH requests to paths containingsignup,/users/,identitiesorconfirm. Check response codes before concluding an account was actually created. - New subscription IDs and tracing. Build a 30-day baseline of
ApimSubscriptionIdvalues per APIM resource, then list IDs from the last 7 days missing from the baseline, plus any request whereIsTraceRequestedis true. CompareIsTraceRequestedwithIsTraceAllowed, because tracing can expose secret values. A new ID is a lead, not proof, and rotating a key may not change its ID. - APIM-linked apps signing in from new places. Filter
AADServicePrincipalSignInLogsto your APIM-linked client IDs and anti-join the last 7 days against the earlier baseline byAppIdandIPAddress. Watch for one app requesting tokens for many resources in a short window. An empty app ID list returns nothing, so populate it first. - Key Vault reads. Review
SecretGet,SecretListandSecretListVersionsinAZKVAuditLogsfor the vaults APIM uses. Flag callers other than the APIM managed identity, but compare against your own access design rather than assuming that identity is the only legitimate reader.
Reading the results
Focus on the period before November 19, 2026, but keep watching afterward. The fix did not invalidate stolen credentials, so misuse can still happen. Most evidence will sit downstream, such as a Key Vault read that does not match APIM's identity, a service principal signing in from a new IP or country, or a backend API authenticating from an unfamiliar address. Kristiansen describes his queries as a hunting map, not a confirmed attack chain. Quiet APIM logs do not mean nothing was taken.
Affected systems and versions
- Affected: Azure API Management Classic tiers: Developer, Basic, Standard and Premium.
- Not affected: APIM v2 tiers and the Consumption tier.
- Vulnerable runtime builds (per NSM): Classic gateways on the
0.52.xbranch with a last build number below 31936, and on the0.53.xbranch with a last build number below 31938. - Fixed runtime builds (per NSM):
0.52.xat 31936 or higher, and0.53.xat 31938 or higher. - Configuration of note: instances with the legacy Management REST API enabled, and secret named values not backed by Key Vault, deserve priority review.
- Exposure: being on a Classic tier does not by itself mean an instance was exposed. The specific criteria are in Service Health notification MZK9-GH0.
Vendor security history
Microsoft is the vendor of Azure API Management. Synergy Research Group estimated Microsoft held 19% of worldwide cloud infrastructure services revenue in Q3 2026, behind Amazon (26%) and ahead of Google (16%), a figure covering IaaS, PaaS and hosted private cloud.
In a separate 2024 review of the 2023 Microsoft Exchange Online intrusion, the US Cyber Safety Review Board found that incident preventable and identified operational and strategic decisions it said reflected insufficient emphasis on enterprise security and risk management. That review has no established connection to this APIM vulnerability and is included only as vendor risk context.
Microsoft reports ongoing work through its Secure Future Initiative. In April 2025 it said it had added more than 200 detections and that researchers had identified 180 cloud and AI vulnerabilities through Zero Day Quest. These are Microsoft-reported progress figures, not an independent audit.
References
- NVD: CVE-2026-139934
- CVE Record: CVE-2026-139934
- Microsoft Security Update Guide: Azure API Management Elevation of Privilege Vulnerability
- BleepingComputer: Microsoft Azure flaw exploited to steal customers' API credentials
- NSM: NSM deler tiltak mot sårbarhet i Azure API Management
- Microsoft Community Hub: Rotating credentials in Azure API Management
- Microsoft Learn: Impacted resources from Azure security advisories
- OpenCVE: CVE-2026-139934
- Anders Kristiansen: APIM legacy access hunting guide
- Incidenture: Azure API Management flaw exploited
- ThreatAft: Azure APIM Classic secret exposure in Norway's energy sector
- OffSeq Radar: CVE-2026-139934
- Synergy Research Group: Q3 cloud market revenues
- DHS: Cyber Safety Review Board report on the Microsoft Online Exchange incident
- Microsoft Security Blog: April 2025 Secure Future Initiative progress report



