CVE-2022-1432 Cross-site Scripting (XSS) - Generic in octoprint/octoprint

High 7.5 Published Updated

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.

PackageAffectedFixed in
octoprint PyPIAll versions1.8.0
octoprint PyPIAll versions1.8.0
OctoPrint PyPIAll versions1.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.

Sources

Also known as GHSA-h8pc-j334-jjhm, PYSEC-2022-201.

Is CVE-2022-1432 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free