Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-30219

MEDIUM · 6.1 CVSS v3.1 Published 2025-03-25
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
63/100
Remediation priority · Elevated
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

RabbitMQ versions prior to 4.0.3 have an XSS vulnerability in the management UI where virtual host names are not escaped in error notifications. An attacker who can modify virtual host names on disk (making a vhost fail to start or creating a new vhost with XSS in the name) can trigger arbitrary JavaScript execution when users view the management UI error notifications.

MitigationUpgrade to RabbitMQ 4.0.3 (open source) or Tanzu RabbitMQ 4.0.3/3.13.8 or later. These versions properly escape virtual host names in management UI error messages.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
High
Privileges
High
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
Low

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:L

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check RabbitMQ server version
    Run `rabbitmqctl status` or check the version via `rabbitmqctl version`. Alternatively, check the installed package version using your OS package manager (e.g., `dpkg -l rabbitmq-server` or `rpm -q rabbitmq-server`).
    Affected if The installed version is prior to 4.0.3 (e.g., 4.0.2, 4.0.1, 4.0.0, 3.x.x, etc.)
  2. Verify management UI plugin is enabled
    Run `rabbitmq-plugins list` and look for `rabbitmq_management` or `rabbitmq_management_ui` in the enabled list. Also check `rabbitmqctl list_plugins` for enabled management plugins.
    Affected if The management UI plugin is enabled and the server version is prior to 4.0.3
  3. Identify virtual hosts with unescaped characters in names
    Run `rabbitmqctl list_vhosts` to list all virtual hosts. Inspect vhost names for characters that could be used in XSS payloads (e.g., <, >, ', ", script, javascript:, onerror=, onload=). Also check vhost definitions in the broker's configuration or in the `vhosts` directory under the RabbitMQ data directory.
    Affected if Any virtual host name contains HTML/JavaScript special characters that could execute in a browser context, and the server version is prior to 4.0.3
  4. Check for virtual host startup errors in logs
    Examine RabbitMQ logs (typically in `/var/log/rabbitmq/` or the log directory configured in `rabbitmq.conf`) for messages containing 'vhost' and 'failed to start' or similar error patterns. These logs may display unescaped vhost names in the management UI error view.
    Affected if There are vhost startup failures logged, and the server version is prior to 4.0.3

You are affected if RabbitMQ version is prior to 4.0.3, the management UI plugin is enabled, and virtual hosts exist with special characters in their names that could trigger XSS when displayed in error notifications.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to RabbitMQ 4.0.3 (open source) or Tanzu RabbitMQ 4.0.3/3.13.8 or later. These versions properly escape virtual host names in management UI error messages.

Recommended fix High confidence

RabbitMQ 4.0.3 (open source) or Tanzu RabbitMQ 4.0.3 / 3.13.8

  1. 1. Identify the current RabbitMQ version by running `rabbitmqctl status` or checking the management UI
  2. 2. For open source RabbitMQ: Plan upgrade to version 4.0.3 or later
  3. 3. For Tanzu RabbitMQ: Plan upgrade to version 4.0.3 or 3.13.8 (depending on your support timeline)
  4. 4. Before upgrading, create a full backup of the RabbitMQ data directory (typically /var/lib/rabbitmq/)
  5. 5. Also backup the configuration file (rabbitmq.conf) and enabled plugins
  6. 6. Stop the RabbitMQ node gracefully using `rabbitmqctl stop`
  7. 7. Upgrade RabbitMQ to the fixed version using your package manager or binary distribution
  8. 8. Start the upgraded RabbitMQ node using `rabbitmq-server -detached`
Caveat Review release notes for any breaking changes between current version and 4.0.3; ensure plugins and Erlang version compatibility

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,440
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,904.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-30219 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-30219 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data