CVE-2022-1432 Cross-site Scripting (XSS) - Generic in octoprint/octoprint
An attacker can inject malicious scripts into the OctoPrint web interface, potentially executing code or hijacking user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-1432?
CVE-2022-1432 is a high-severity cross-site scripting vulnerability in octoprint/octoprint, published on 18 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site Scripting (XSS) - Generic in GitHub repository octoprint/octoprint prior to 1.8.0.
Weakness: CWE-79
Which versions are affected by CVE-2022-1432?
3 open source packages ship an affected version, including octoprint and OctoPrint. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
octoprint PyPI | All versions | 1.8.0 |
octoprint PyPI | All versions | 1.8.0 |
OctoPrint PyPI | All versions | 1.8.0 |
Products include Octoprint Octoprint.
How do I fix CVE-2022-1432?
Upgrade octoprint to 1.8.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-1432 being exploited?
There is no known exploitation of CVE-2022-1432 in the wild and no public exploit code.
Other vulnerabilities in octoprint/octoprint
- CVE-2018-16710 Information disclosure in n/a
- CVE-2025-58180 OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
- CVE-2022-1430 Cross-site Scripting (XSS) - DOM in octoprint/octoprint
- CVE-2024-32977 OctoPrint Authentication Bypass via X-Forwarded-For Header when autologinLocal is enabled
- CVE-2025-48879 OctoPrint Vulnerable to Denial of Service through malformed HTTP request
Sources
Also known as GHSA-h8pc-j334-jjhm, PYSEC-2022-201.