Vulnerability · Published Mar 25, 2025 · Assigned by GitHub_M

CVE-2025-30219RabbitMQ has XSS Vulnerability in an Error Message in Management UI

Medium 6.1

In plain English

A medium-severity cross-site scripting in rabbitmq-server from rabbitmq. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.2%top 88.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

RabbitMQ is a messaging and streaming broker. Versions prior to 4.0.3 are vulnerable to a sophisticated attack that could modify virtual host name on disk and then make it unrecoverable (with other on disk file modifications) can lead to arbitrary JavaScript code execution in the browsers of management UI users. When a virtual host on a RabbitMQ node fails to start, recent versions will display an error message (a notification) in the management UI. The error message includes virtual host name, which was not escaped prior to open source RabbitMQ 4.0.3 and Tanzu RabbitMQ 4.0.3, 3.13.8. An attack that both makes a virtual host fail to start and creates a new virtual host name with an XSS code snippet or changes the name of an existing virtual host on disk could trigger arbitrary JavaScript code execution in the management UI (the user's browser). Open source RabbitMQ `4.0.3` and Tanzu RabbitMQ `4.0.3` and `3.13.8` patch the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rabbitmq-serverno fix listedDEBIAN-CVE-2025-30219
Debian:13rabbitmq-server4.0.5-1DEBIAN-CVE-2025-30219
Debian:14rabbitmq-server4.0.5-1DEBIAN-CVE-2025-30219
Ubuntu:22.04:LTSrabbitmq-server3.9.27-0ubuntu0.2USN-7399-1
Ubuntu:22.04:LTSrabbitmq-server3.9.27-0ubuntu0.2UBUNTU-CVE-2025-30219
Ubuntu:24.04:LTSrabbitmq-server3.12.1-1ubuntu1.2USN-7399-1
Ubuntu:24.04:LTSrabbitmq-server3.12.1-1ubuntu1.2UBUNTU-CVE-2025-30219

Affected products (as reported)

VendorProductVersions
rabbitmq rabbitmq-server < 4.0.3

Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:L

References