# CVE-2023-0599: Rapid7 Metasploit Pro Stored XSS

> An authenticated attacker can execute arbitrary scripts in other users' browsers, potentially leading to privilege escalation due to high default user privileges.

- **Severity:** Medium 6.1 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 1 Feb 2023
- **Updated:** 25 Mar 2025
- **Also known as:** GHSA-25pv-7q9q-qqjc

## What is CVE-2023-0599?

CVE-2023-0599 is a medium-severity cross-site scripting vulnerability in Rapid7 Metasploit Pro, published on 1 Feb 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

Rapid7 Metasploit Pro versions 4.21.2 and lower suffer from a stored cross site scripting vulnerability, due to a lack of JavaScript request string sanitization.  Using this vulnerability, an authenticated attacker can execute arbitrary HTML and script code in the target browser against another Metasploit Pro user using a specially crafted request. Note that in most deployments, all Metasploit Pro users tend to enjoy privileges equivalent to local administrator.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2023-0599?

It affects 1 product.


Products: Rapid7 Metasploit.

## How do I fix CVE-2023-0599?

No fix has been published for CVE-2023-0599 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-0599 being exploited?

There is no known exploitation of CVE-2023-0599 in the wild and no public exploit code.

## Other vulnerabilities in Rapid7 Metasploit Pro

- [CVE-2020-7385](https://insights.sbomify.com/CVE-2020-7385/): Metasploit Framework 'drb_remote_codeexec' code execution (high 8.1)
- [CVE-2020-7377](https://insights.sbomify.com/CVE-2020-7377/): Rapid7 Metasploit Framework Relative Path Traversal in telpho10_credential_dump module (high 8.1)
- [CVE-2017-5235](https://insights.sbomify.com/CVE-2017-5235/): Other in Metasploit Pro (high 7.8)
- [CVE-2019-5645](https://insights.sbomify.com/CVE-2019-5645/): Rapid7 Metasploit HTTP Handler Denial of Service (high 7.5)
- [CVE-2019-5624](https://insights.sbomify.com/CVE-2019-5624/): Rapid7 Metasploit Framework Zip Import Directory Traversal (high 7.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-0599 and fix it if it is affected.

What it is: CVE-2023-0599 is a medium-severity cross-site scripting vulnerability in Rapid7 Metasploit Pro, published on 1 Feb 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2023-0599 in the wild and no public exploit code.

Affected product: Rapid7 Metasploit Pro. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-0599/ (Markdown: https://insights.sbomify.com/CVE-2023-0599/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-0599
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-0599
- OSV: https://osv.dev/vulnerability/CVE-2023-0599

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-0599/
Summaries are generated and may contain mistakes; the official description above is the record.
