Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2022-31358: Reflected XSS in Proxmox Virtual Environment /api2/html/ API Inspector

Published Dec 14, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.0Critical · v3.1
EPSS1.3%72nd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Proxmox
IdentifiersCVE-2022-31358CWE-79 · Improper Neutralization of Input…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
ProxmoxVirtual Environmentapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.