Back to Blog

Azure API Management: there is no patch, there is a list of secrets to rotate

Uncut key blanks hanging in stacks on a workshop wall

On 3 December Microsoft published CVE-2026-139934: incorrect authorization in Azure API Management, base score 9.8, flagged as exploited. And there is nothing to download. The bulletin carries a question in its FAQ that you do not see every day —"Why is there no downloadable security update?"— and answers it like this: Microsoft remediated the platform issue on 19 November, "but that remediation does not invalidate previously exposed credentials". The vendor did its part fifteen days ago. The work that is left is yours, and it consists of rotation.

So far this is the story you will read in twenty places. What kept us reading for an afternoon is something else: the clock did not start on 3 December. The bulletin itself points to two Azure Service Health notifications, one from 21 November and one from the 24th, both under the same tracking ID, MZK9-GH0. And it adds a sentence that changes the question: "credentials and secrets rotated after the first or second Azure Service Health notifications do not need to be rotated again".

Put another way: the question that decides whether you have work this week is not "how bad is this CVE?". It is "did we rotate anything after 21 November?". And the answer to that question does not live in your vulnerability scanner or in any public bulletin: it lives in a notice that reached your tenant twelve days earlier, through the channel that announces maintenance and degradations — the one that in a lot of companies goes to a distribution list nobody opens.

Two official records of the same flaw, two answers

We found this looking at the raw record, and we think it is worth telling because it touches how you prioritise. If you ask Microsoft's API for this CVE's entry, the fields read "exploited": "Yes", "publiclyDisclosed": "No" and, where a fixed version number would go, the string "Exploitation Detected". The temporal vector says the same thing in its own notation: E:F, functional exploit. Base 9.8, temporal 9.1.

Now ask CVE.org's API for the same CVE. Inside the record, in the enrichment block signed by CISA, the SSVC assessment says this:

"options": [
  {"Exploitation": "none"},
  {"Automatable": "yes"},
  {"Technical Impact": "total"}
]

About the same flaw, the vendor says "exploitation detected" and the public record says Exploitation: none. And let us be fair, because the easy move would be to laugh: in the SSVC framework, none does not mean "this is not being exploited"; it means the evaluator has no observed evidence and no public proof of concept at the moment of evaluation. And that moment is written into the record itself: the assessment is stamped 3 December at 00:00 UTC, and the CVE was not published until 23:20 UTC that same day. It is the same question asked twenty-three hours apart, with half the information.

The practical consequence is yours, though. If your team's prioritisation rule is "we act when the flaw shows up flagged as exploited in the public source", here that rule returned two different answers on the same day, both from official places. In this particular case it does not matter: the vendor had already told you directly twelve days earlier, through a channel with your subscription ID written on it. But it is worth knowing the rule can tie with itself.

First, who has nothing to do

Before opening any console, an inventory check you can answer in a minute by looking at each instance's SKU. The bulletin is explicit in one direction: "Azure API Management v2 and Consumption tiers are not affected". If everything you run is v2 or Consumption, close the tab and get on with your afternoon.

And if your SKU is Classic —Developer, Basic, Standard or Premium— the bulletin does not declare you compromised: it tells you to read. Literally, it asks you to review the Service Health notification "for exposure criteria" and to rotate "for exposed instances". The tier decides whether you have to look; the exposure criteria, which live in that notice and not in the CVE, decide whether you have to work. On the mechanism Microsoft offers a single sentence, and it is the one that explains why the job is rotation and not patching: an unauthorized attacker could send specially crafted requests and end up performing "administrative operations, including secrets management".

The short list and the long list

Here is the part that genuinely costs hours. Four classes of secret from the notification affected tenants received have been published. The rotation guide the bulletin itself links to —published by Microsoft on 21 November, the same day as the first notice— lists seven. Both are Microsoft's, and we have only been able to read the second. If you work from the four that have been published, the bottom three rows fall out, and the last one is the one that appears on no listing at all: you have to go looking for it in the XML.

Where the secret lives In what has been published of the notice How you find it (our reading)
Named values, including those referencing Key Vault Yes Listed. Note: the bulletin asks you to rotate the secret inside Key Vault too, not just the reference.
Client secrets for identity providers and OpenID Connect providers Yes Listed, but the replacement is created at the issuer (Entra ID), not at the gateway.
Subscription keys Yes Listed. These are the ones with consumers on the other side: rotating them badly cuts service.
Tokens used to call the direct management API Yes Listed. Before regenerating you need to know who uses them: the guide asks you to confirm it.
Backend credentials: headers, query parameters, client certificates Not listed Guide only. These are the ones that open your systems behind the gateway.
Logger connection strings (Event Hubs, Application Insights) Not listed Guide only. Nobody holds these in their head because they were set once and worked.
Credentials hard-coded inside policies Not listed Guide only, and this is the row that actually hurts: there is no listing, you go looking in the XML.

Rotating without cutting off whoever consumes your API

This is the difference between a patch and a rotation, and our bet is that it is why this has gone two weeks undone in a fair number of places. A patch installs and at worst restarts a service. Rotating subscription keys changes the lock on third parties: on customers, on internal applications, on the supplier who integrated something in 2023 and on somebody's cron. That is why API Management hands out two keys per subscription, primary and secondary, and why there is a documented order that does not cut service:

  • 1. Move callers to the secondary key and verify their requests still succeed.
  • 2. Regenerate the primary and test it.
  • 3. Move callers to the primary and confirm they have switched.
  • 4. Regenerate the secondary. Now both old keys are dead.

Four steps, and the third is what turns this into a project: confirming they have switched requires knowing who they are. If you cannot name a key's consumers, the alternative is to rotate it and wait to see who phones. It works. It is just not a plan.

And there is a sentence in that same guide worth carrying around, because it separates those who rotate from those who think they have: "updating the value in API Management doesn't revoke the old credential at its issuer". Changing the client secret stored in the gateway does not switch off the secret still alive in Entra ID. Those are two operations, and the second is the one that counts. We told a similar story when Puppet's patch did not revoke what the CA had already signed: the fix closes the door they came in through, not the one they walked off with.

The sentence in the bulletin that is not about rotating

After asking for rotation, the bulletin adds one more line: "investigate any unexpected activity on the systems and services these credentials and secrets grant access to". That is no longer rotation. That is hunting, and not in the gateway but in everything behind it. An API gateway does not hold its own keys: it holds the keys to other people's houses —your ERP, your database, the supplier's service— and that is why an authorization flaw there is not measured by what you can see in Azure.

This is not about Azure

We are not resellers of Microsoft or of anyone, and some of our clients are not affected by this at all. We wrote it anyway because the pattern comes back under other names every few weeks and always lands in the same place: the inventory of secrets does not exist until it is needed within twenty-four hours. When the decrypted environment variables story broke we said it in other words —assume every one of yours has walked— and when somebody signed into a tenant impersonating an application, as well: Entra ID asked for no MFA, because applications have no fingers.

The underlying reading is the Zero Trust one: a credential is worth what it opens and how fast you can make it useless, not what it is stored in. If rotating one secret on your platform is a two-week project with meetings, what you have is a gateway nobody designed to be rotated, and no vendor fixes that. That is the part we at everyWAN look at when we get into somebody's data and applications. Not whether the secret is encrypted. Who uses it, who replaces it and how long that takes.

Five checks

  • 1. Classic or v2? Check the SKU of each API Management instance. Classic Developer, Basic, Standard and Premium are in; v2 and Consumption are not. This check decides whether the other four are yours.
  • 2. Look for MZK9-GH0 in Service Health, in the impacted-resources view for security advisories. That is where the exposure criteria and the date are. And while you are there, answer the uncomfortable question: who receives those notices? If the answer is a shared mailbox, that is the finding of the day.
  • 3. Inventory the guide's seven classes, not the four that were published. Backend credentials and logger connection strings are listed, but nobody holds them in their head. Anything hard-coded inside policies is listed nowhere: you go looking in the XML, and it is what opens your internal systems.
  • 4. Name the consumers of each subscription key before touching anything. Without that list there is no rotation without an outage, only rotation with a surprise. And check the secondary key exists and is used: that is what makes the change reversible.
  • 5. The only one that does not depend on Microsoft: if you were asked today to rotate every secret in any piece of your infrastructure —not this one, whichever you like— how long would it take and who would know the list? If the answer takes more than a minute, you have January's work already, and it has no CVE.

What we are not claiming. We have not seen the Service Health notification: we do not have an affected tenant, so what we say about it comes from Microsoft's bulletin, which quotes and dates it, and from the trade press, which published four of its classes of secret. We do not know whether the notification lists only those four; we know those four are the ones that have been published, and the table column is worded in those terms. We do not know how many instances remain unrotated, nor do we claim any particular organisation is compromised. We have not reproduced the flaw: the bulletin describes the mechanism in a single sentence and gives no detail that would allow reproduction. That Norway's national security authority published an advisory in November and that this has been linked to incidents in that country's energy sector we read in the trade press, not verified at source, and that is why we build no argument on it. Translations of the quotes are ours; the originals are behind the links.

Sources (verified at origin on 04/12/2026): the vulnerability entry is CVE-2026-139934, "Azure API Management Elevation of Privilege Vulnerability", Microsoft, published on 03/12/2026; the raw fields (exploited: Yes, publiclyDisclosed: No, "Exploitation Detected", base 9.8, temporal 9.1, 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, CWE-863), the FAQ text ("Why is there no downloadable security update?" and "How could an attacker exploit this vulnerability?" and "How could an attacker exploit this vulnerability?"), the platform remediation on 19/11/2026, rotating APIM secrets and referenced Key Vault secrets, the sentence about what was already rotated after the first or second notification, the 21 and 24/11/2026 notifications under tracking ID MZK9-GH0, and that v2 and Consumption are not affected) we read on the public MSRC API (api.msrc.microsoft.com/sug/v2.0/en-US/vulnerability/CVE-2026-139934). The reservation (30/11/2026) and publication (03/12/2026) dates and the SSVC enrichment block signed by CISA with Exploitation: none, Automatable: yes and Technical Impact: total are in the CVE.org record, read through its API (cveawg.mitre.org/api/cve/CVE-2026-139934). The rotation procedure, the primary/secondary order, the additional classes of secret (backend credentials, logger connection strings, credentials in policies) and the sentence "updating the value in API Management doesn't revoke the old credential at its issuer" come from "Rotating credentials in Azure API Management", Microsoft Tech Community, 21/11/2026 (act. 22/11/2026). The enumeration of the notification's four classes of secret and the mention of the Norwegian advisory come from CSO Online, 24/11/2026. The twelve-day arithmetic (21/11 to 03/12) is ours, as is the third column of the table. Photograph: "Keys set", rawpixel, CC0, via Openverse.

How long does it take you to make a credential useless?

At everyWAN we design our clients' applications and data so that rotating a secret is a Tuesday afternoon and not a project: a living inventory, two keys where they are needed, consumers with names, and a rollback somebody has actually run. On Zero Trust terms: no credential is worth anything just for being stored somewhere nice. If you want us to look at your gateway before a bulletin does, write to us.

Talk to everyWAN

Tags:

Share:

Subscribe to our newsletter

To receive IT stories, everyWAN news and exclusive subscriber offers, sign up to our mailing list

Minorisa de Sistemas Informaticos y Gestión S.L. © 2026
everyWAN
everyWAN