CVEfocus › CVE database › CVE-2026-66077

CVE-2026-66077RabbitMQ: Stored XSS via TLS peer-certificate DN in management UI

CVSS 7.3 HighEPSS 0.2% (higher than 10% of CVEs)Published 2026-09-23Updated 2026-09-29Assigner: GitHub_M

RabbitMQ is a messaging and streaming broker. Prior to versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6, The management UI uses EJS 1.0 in which <%= ... %> does NOT HTML-escape. connection.ejs:135 renders <%= connection.ssl_details.peer_cert_subject %> (and peer_cert_issuer) directly into the page. The same pattern appears in streamConnection.ejs:102,106,110. The values come from rabbit_ssl:peer_cert_subject/1 which formats the DN as a string without HTML escaping. The verifier corrected the original researcher's claim: this is reachable only when the listener is configured with verify_peer (so the certificate must be signed by a CA in the broker's trust store, not arbitrary self-signed); however, in deployments using mTLS for client authentication, any user who can request a certificate from the organisational CA controls the Subject CN. An attacker who can obtain a TLS client certificate signed by a CA the broker trusts (with verify_peer enabled) can embed JavaScript in the certificate's Subject DN. When any administrator views that connection in the management UI, the script executes in the admin's browser session, allowing full account takeover (create users, export definitions, etc.). The management UI's CSP includes 'unsafe-inline', so inline script execution is not blocked. Preconditions include TLS listener configured with ssl_options.verify = verify_peer Attacker can obtain a CA-signed client certificate with attacker-chosen Subject (e.g. self-service corporate PKI, or rabbitmq_trust_store plugin in use) Administrator views the connection detail page. This issue is fixed in versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6.

CWE-79

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
5Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04rabbitmq-serverFixed4.0.5-10ubuntu5.2UBUNTU-CVE-2026-66077
Ubuntu 24.04rabbitmq-serverFixed3.12.1-1ubuntu1.7UBUNTU-CVE-2026-66077
Ubuntu 22.04rabbitmq-serverFixed3.9.27-0ubuntu0.6UBUNTU-CVE-2026-66077
Ubuntu 20.04rabbitmq-serverFix pending3.8.3-0ubuntu0.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-66077
Ubuntu 18.04rabbitmq-serverFix pending3.6.10-1ubuntu0.5+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-66077
Ubuntu 16.04rabbitmq-serverFix pending3.5.7-1ubuntu0.16.04.4+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-66077
Debian 14rabbitmq-serverFixed4.3.0-2DEBIAN-CVE-2026-66077
Debian 13rabbitmq-serverFix pendingDEBIAN-CVE-2026-66077
Debian 12rabbitmq-serverFix pendingDEBIAN-CVE-2026-66077

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.