Security & identity

RabbitMQ OAuth2 Token Endpoint Flaw (GHSA-cfvg-5q96-8mhm): What to Do

A critical RabbitMQ advisory says the management plugin's OAuth2 token proxy needs no login. Affected versions, fixed releases, workarounds and checks.

By EpiFive Editorial TeamReviewed/updated 9 min readHow we check our guides

This article contains affiliate links. If you buy through them, EpiFive may earn a commission at no extra cost to you. Details.

On this page

RabbitMQ's maintainers published a Critical security advisory, GHSA-cfvg-5q96-8mhm, on 27 November 2026. It says the management plugin's OAuth2 token-endpoint proxy answers anonymous requests, so a network peer could obtain a signed token with a scope the attacker chooses. The most important action is to find out whether your brokers use OAuth2 for the management plugin with management.oauth_client_secret set, and if so to upgrade to 4.4.1, 4.3.8 or 4.2.13, or apply a workaround from the advisory today.

What happened

All facts in this section come from the RabbitMQ advisory, which is the primary source. It is titled "Unauthenticated OAuth2 token-endpoint proxy allows anonymous privileged token minting".

ItemWhat the advisory says
Published27 November 2026, by the RabbitMQ maintainer
SeverityCritical, CVSS v4.0 score 9.1
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
WeaknessCWE-306, Missing Authentication for Critical Functionality
CVE"None known" as of 1 December 2026
CreditOne external reporter is credited; the advisory omits the name

The advisory describes the problem like this: the management plugin exposes the OAuth2 token-endpoint proxy at /js/oidc-oauth/token-endpoint/<resource-server-id> without requiring caller authentication. The broker acts as a confidential OAuth2 client for any anonymous network peer. The broker's configured client secret is injected into the request automatically, and other form parameters, including scope, are relayed unchanged.

The minted token is accepted by the management API and by the AMQP 0-9-1 listener when it is supplied as the SASL PLAIN password. The advisory states that this grants full management-plane takeover, persistent administrator account creation, and data-plane access on all vhosts, meaning an attacker could read, forge and destroy messages.

The fix is described as pull request 17937, which restricts relaying to the authorization_code and refresh_token grant types. The advisory says two related observations were triaged separately and are not part of it.

What is not known

The advisory does not say whether the flaw has been used against any broker, and it does not report a number of affected deployments. Treat any claim about attacks in the wild as unconfirmed unless the RabbitMQ maintainers or a CERT publish it. The advisory also names no individuals other than the unnamed reporter, and this guide names none.

A note on release dates

On the GitHub releases page, the 4.4.1 entry reads "released this 16 Nov 20:08" and 4.3.8 reads 16 November, 19:45. The advisory was published on 27 November. The visible release notes for 4.4.1 that we read do not label any entry as a security fix, and they do not mention the token endpoint. The advisory is the source for which versions are patched, so plan around its version list and read the release notes for your target version before upgrading.

Am I affected?

Two questions decide it. The first is the version, from the advisory:

Release lineAffectedPatched
4.4.x4.4.0 up to (not including) 4.4.14.4.1
4.3.x4.3.3 up to (not including) 4.3.84.3.8
4.2.x4.2.9 up to (not including) 4.2.134.2.13

The second is the configuration. The advisory says exploitation depends on a documented OAuth2 management setup with management.oauth_client_secret set, and on an identity provider that grants administrator scopes to that client. So a broker is a concern when all of these are true:

  1. The management plugin is enabled. RabbitMQ's management documentation says the plugin is enabled with rabbitmq-plugins enable rabbitmq_management, and that its HTTP API listens on port 15672 by default.
  2. OAuth2 is configured for the management UI. The OAuth2 documentation shows this as management.oauth_enabled = true.
  3. management.oauth_client_secret is set in your configuration.
  4. The identity provider gives administrator scopes to that client.

If you do not use OAuth2 for the management plugin, or you never set a client secret, the advisory does not describe your broker as exploitable by this issue. Still upgrade when you can, because a patched release is the only complete fix.

How to check

  • Version: the CLI documentation says rabbitmq-diagnostics status reports node status; run it against each node and read the version it prints. The documentation page we opened does not give the output format, so we cannot quote it.
  • Plugin and listener: the management documentation shows rabbitmq-diagnostics -s listeners and gives this as its example output for the HTTP API: Interface: [::], port: 15672, protocol: http, purpose: HTTP API.
  • Configuration: search your rabbitmq.conf and any configuration management templates for management.oauth_enabled and management.oauth_client_secret. Also check container environment files and Kubernetes secrets that feed the configuration, since secrets are often injected there.
  • Network exposure: list which networks can reach the management port. The advisory describes the attacker as an "anonymous network peer", so a management port reachable from the internet or from a broad internal network raises the risk.

Indicators of compromise

The advisory names no specific indicators of compromise, so there is no hash, address or account name to match. It does describe the relevant request pattern: a POST without credentials to /js/oidc-oauth/token-endpoint/<resource-server-id>, using grant_type=client_credentials or password. If you run a reverse proxy or load balancer in front of the management port, search its access logs for that path. RabbitMQ's own logs may not record such requests in a way we could confirm, so treat an empty result as "nothing found in these logs", not as proof of no abuse.

What to do now

  1. Find every broker that runs a version in the affected ranges, including brokers inside Kubernetes operators, container images and vendor appliances. Your platform owner may pin an image tag, so check the running version, not the tag you meant to deploy.
  2. Upgrade each affected broker to 4.4.1, 4.3.8 or 4.2.13, depending on its release line. Read the release notes for your target first; see the notes below.
  3. If you cannot upgrade today, apply a workaround from the advisory: remove management.oauth_client_secret, or place authentication in front of the management port. Removing the secret changes how the management UI signs users in, so test it on a non-production broker first.
  4. Restrict the management port to the networks that need it, as defense in depth. The advisory's second workaround is about authentication in front of the port; a network allow list is a separate, complementary control.
  5. Review logs for unauthenticated POST requests to the token-endpoint path described above, and for administrator accounts or tokens you did not create.
  6. If you find suspicious activity, treat the broker as compromised: rotate the OAuth2 client secret at your identity provider, review and remove unknown users, and review the data on affected vhosts. The advisory says the impact includes persistent administrator account creation, so checking the user list matters even after you patch.

Upgrade notes from the release page

The 4.4.1 and 4.3.8 release notes on GitHub list items that can affect an upgrade. These are from the entries we read on 1 December 2026; the entries were long and our reading of them was partial, so read the full notes for your version.

  • The minimum supported Erlang version is 27.0 for both releases; nodes do not start on older Erlang.
  • If you upgrade from before 4.4.0, the 4.4.0 notes cover OpenID Connect discovery validation, which can break identity providers with non-HTTPS endpoints or mismatched issuers. The notes name auth_oauth2.discovery.verify_issuer and auth_oauth2.discovery.verify_https_endpoints as the settings that can disable the checks.
  • In 4.4.1, HTTP API endpoints that accept JSON bodies now require the application/json content type, and several endpoints now require the administrator tag. Scripts that call the management API may need a change.
  • In 4.3.8, runtime parameter endpoints require the administrator tag, and non-administrator users must supply a password or token in shovel direct URIs.

We could not read the 4.2.13 release entry, so check it yourself before upgrading a 4.2 broker.

How to prevent it

  • Keep the management plugin off the public internet. The management documentation describes basic authentication and token authentication for the HTTP API; neither replaces network controls.
  • Prefer a public OAuth client for the UI where your design allows. The OAuth2 documentation says the management UI client should be a public web application rather than a confidential one, since confidential clients require a secret. Whether that fits your identity provider is a design decision to check in your provider's documentation.
  • Limit scopes. RabbitMQ reads scopes from the token's scope claim and requires each to start with the resource server ID prefix, for example rabbitmq.tag:management. Do not grant administrator scopes to a client that does not need them; the advisory's exploitation condition includes such a grant.
  • Understand how tokens reach AMQP. The OAuth2 documentation says the plugin decodes the token the client supplies, which the client passes as the password; RabbitMQ validates the signature and the aud claim and translates scopes to permissions. A token that passes those checks is accepted, so who can obtain tokens matters as much as who can connect.
  • Subscribe to the RabbitMQ security advisories on GitHub for the repository so you see the next one on the day it is published.

For background on where a broker fits in an event-driven design, see Kafka vs RabbitMQ vs AWS SQS for event-driven architecture.

What we checked

  • Opened the advisory GHSA-cfvg-5q96-8mhm on GitHub on 2026-12-01 and took the severity, CVSS v4.0 vector and score, CWE, affected and patched versions, description, workarounds and the request pattern from it.
  • Opened the RabbitMQ OAuth2 documentation on 2026-12-01 and confirmed the setting names management.oauth_enabled, management.oauth_client_id, auth_oauth2.resource_server_id, and how the AMQP plugin treats a token supplied as the password. The page did not cover management.oauth_client_secret; that name comes from the advisory.
  • Opened the management plugin documentation on 2026-12-01 and confirmed the enable command, default port 15672 and the example listener output quoted above. It did not document a command to list or disable plugins, so we give none.
  • Opened the RabbitMQ CLI documentation page on 2026-12-01 and confirmed rabbitmq-diagnostics status. It did not document rabbitmq-plugins list flags, so we give none.
  • Opened the GitHub releases page and the 4.4.1 release on 2026-12-01. Release dates (16 November) differ from the advisory date (27 November), and the visible 4.4.1 notes do not mention the token endpoint. We could not read the 4.2.13 entry or the end of the long 4.4.1 and 4.3.8 entries.
  • Searched content/posts for RabbitMQ incident coverage and found none.
  • Not tested: we did not run a RabbitMQ broker or reproduce the issue, and we have not seen the pull request code. There is no CVE yet, and no source we opened reports exploitation.

Last tested: 2026-12-01

Sources

Questions people ask

Which RabbitMQ versions does GHSA-cfvg-5q96-8mhm affect?

The advisory lists 4.4.0 up to but not including 4.4.1, 4.3.3 up to but not including 4.3.8, and 4.2.9 up to but not including 4.2.13. The patched versions it lists are 4.4.1, 4.3.8 and 4.2.13.

Is every RabbitMQ broker exposed?

Not necessarily. The advisory says exploitation depends on a documented OAuth2 management setup with management.oauth_client_secret set, and on an identity provider that grants administrator scopes to that client. A broker without that setup is not described as exploitable by this issue.

Does the advisory have a CVE number?

As of 1 December 2026 the advisory page shows "CVE: None known". It is tracked as GHSA-cfvg-5q96-8mhm with a Critical rating and a CVSS v4.0 score of 9.1, as stated by the RabbitMQ maintainers.

What can I do if I cannot upgrade today?

The advisory lists two workarounds: remove management.oauth_client_secret, or place authentication in front of the management port. Upgrading to a patched release remains the fix.

Are there published indicators of compromise?

No. The advisory names no specific indicators of compromise. It describes the relevant request pattern, an unauthenticated POST to the token-endpoint path with grant_type client_credentials or password, which you can look for in your own proxy or access logs.

RabbitMQGHSA-cfvg-5q96-8mhmOAuth2Management pluginMessage broker