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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2025-03-25T22:55:35.539Z
- **Modified:** 2026-06-17T09:08:22.773Z

## Who should check

- Anyone running rabbitmq-server \< 4.0.3

## 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 and fixed versions

- rabbitmq-server: \< 4.0.3 (cvelist)

## Mitigation

- Upgrade rabbitmq-server to 4.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-30219. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-30219.md
Affected: rabbitmq-server < 4.0.3
Fixed in: rabbitmq-server 4.0.3

Steps:
1. Search this machine and project for rabbitmq-server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-30219 being exploited?

There is no confirmed exploitation: CVE-2025-30219 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-30219?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-30219?

rabbitmq-server \< 4.0.3.

### Is there a fix for CVE-2025-30219?

Yes. Fixed in rabbitmq-server 4.0.3. Upgrade rabbitmq-server to 4.0.3 or later.

### How do I check if I'm affected by CVE-2025-30219?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-g58g-82mw-9m3p>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-30219>

HTML: <https://flawdb.com/CVE-2025-30219> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-30219>
