CVE-2026-144241: RabbitMQ Server 3.13.19 before 3.13.21 HTML Injection via OAuth Login Warning
RabbitMQ Server 3.13.19 before 3.13.21, 4.1.15 before 4.1.17, 4.2.10 before 4.2.12, and 4.3.5 before 4.3.7 contains an HTML injection vulnerability in the rabbitmqmanagement plugin's OAuth login warning, because checkbadresponse passes the server-supplied 401/403 error reason to the loginoauth.ejs template unescaped. An attacker with configure permission can declare a queue whose name contains an HTML <base> payload; when a victim lacking read permission on it requests messages, the injected element retargets the UI's periodic refresh requests to an attacker origin, leaking the victim's Authorization header.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.13.21 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.17 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.7
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using the rabbitmq_management plugin with OAuth login are exposed if they run RabbitMQ Server 3.13.19 before 3.13.21, 4.1.15 before 4.1.17, 4.2.10 before 4.2.12, or 4.3.5 before 4.3.7. Exploitation also depends on a victim using the management UI and lacking read permission for the attacker-controlled queue.
What access does an attacker need?
The attacker needs configure permission, which allows them to declare a queue with a name containing the malicious HTML base payload. They then need a victim without read permission on that queue to request its messages through the management UI.
What could be exposed if exploitation succeeds?
The injected base element can redirect the management UI's periodic refresh requests to an attacker-controlled origin. Those requests can leak the victim's Authorization header.
How can I determine whether a system may already be vulnerable?
Check the RabbitMQ Server version and whether the rabbitmq_management plugin uses OAuth login. Review whether users with configure permission can create queues and whether queue names containing HTML payloads have been declared.