CVE-2022-31358: Reflected XSS in Proxmox Virtual Environment /api2/html/ API Inspector
- Vendor
- Proxmox
CVE-2022-31358 is a reflected cross-site scripting vulnerability in Proxmox Virtual Environment (PVE) prior to v7.2-3, specifically affecting the API Inspector functionality exposed under /api2/html/. When a request is made to a non-existent endpoint beneath /api2/html/, user-controlled path data is reflected into an HTML href attribute without proper escaping. This allows crafted input to break out of the attribute context and inject attacker-controlled script or HTML into the response. The issue is described as post-authentication because successful exploitation requires the victim to be logged into the PVE web interface in the same browser session.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows execution of arbitrary JavaScript in the context of the authenticated victim’s PVE web session. Because the injected script runs within the trusted management interface, an attacker can interact with functionality exposed by the web UI using the victim’s privileges. The provided context states this may include full control of the web interface and potentially shell command execution on the managed host, depending on the victim’s effective permissions.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict access to the PVE web interface to trusted administrative networks and users, minimize exposure of the management UI, and avoid following untrusted links to /api2/html/ paths while authenticated. Because exploitation requires an authenticated browser session, reducing concurrent authenticated browsing and isolating administrative access can lower risk. These are temporary measures only; patching is the proper fix.
Remediation
Patch, then assume compromise.
Upgrade Proxmox Virtual Environment to a fixed release. The provided context states the XSS was patched in pve-http-server version 4.1-2 by encoding user-controlled input as HTML entities, and the overall affected product range is PVE prior to v7.2-3. Applying the vendor patch or upgrading to v7.2-3 or later remediates the issue.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-31358 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2022-31358 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-31358?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2022-31358.
- Is there a patch for CVE-2022-31358?
- Upgrade Proxmox Virtual Environment to a fixed release. The provided context states the XSS was patched in pve-http-server version 4.1-2 by encoding user-controlled input as HTML entities, and the overall affected product range is PVE prior to v7.2-3.
- What products are affected by CVE-2022-31358?
- Proxmox Virtual Environment.
- How severe is CVE-2022-31358?
- CVE-2022-31358 has a CVSS v3.1 score of 9.0 (Critical) and an EPSS score of 1.3% (72nd percentile) as of Oct 16, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.