# RabbitMQ OAuth2 proxy flaw let anonymous callers mint admin tokens with the broker's client secret

Source: https://startwithidentity.com/blog/2026-11-27-rabbitmq-oauth2-proxy-flaw-let-anonymous-callers-mint-admin-tokens-with-the-brokers-client-secret/
Last updated: 2026-11-30
License: content by Start with Identity. Cite the source URL.

---

RabbitMQ published advisory GHSA-cfvg-5q96-8mhm on November 27, rated CVSS 4.0 9.1, for an OAuth2 token-endpoint proxy in the management plugin that runs "without any caller authentication" ([RabbitMQ](https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm)). The proxy forwards a caller's request to the identity provider's token endpoint and, when no client secret is supplied, appends the broker's configured `management.oauth_client_secret`. Any anonymous network peer can therefore make the broker act as a confidential OAuth2 client and, if the provider allows it, get a signed JWT with the scopes it asks for. The token works on the management API and, as a SASL PLAIN password, on AMQP 0-9-1, because audience validation is not tied to the listener. Affected: 4.4.0, 4.3.3 to 4.3.7 and 4.2.9 to 4.2.12. Fixed: 4.4.1, 4.3.8 and 4.2.13. No CVE is assigned yet, and [The Hacker News](https://thehackernews.com/2026/11/critical-rabbitmq-oauth2-flaw-could.html) reports no known attacks.

## Why it matters

A [client secret](https://startwithidentity.com/glossary/client-credentials/) is meant to prove the caller is the client. Here the broker lent its secret to anyone who asked, so the identity provider issued tokens to strangers in the broker's name. Two defenses would each have limited the damage: an IdP that grants the broker's client only the scopes it needs, and tokens whose [audience](https://startwithidentity.com/glossary/jwt/) is checked per listener.

Upgrade, then list admin users created since July, because patching does not remove accounts made through the flaw. If you cannot upgrade, remove `management.oauth_client_secret` or put authentication in front of the management port. In the identity provider, restrict the RabbitMQ client to the [authorization code flow](https://startwithidentity.com/glossary/authorization-code-flow/) with [PKCE](https://startwithidentity.com/glossary/pkce/), cap its [scopes](https://startwithidentity.com/glossary/scope/), and review token issuance logs for client-credentials or password grants from that client.

Source: [RabbitMQ advisory](https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm), [The Hacker News](https://thehackernews.com/2026/11/critical-rabbitmq-oauth2-flaw-could.html)
