CVE-2022-1430 Cross-site Scripting (XSS) - DOM in octoprint/octoprint

High 7.5 Published Updated

An attacker can execute arbitrary JavaScript in the victim's browser via DOM-based XSS in OctoPrint, potentially leading to session hijacking or malicious actions.

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-1430?

CVE-2022-1430 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) - DOM in GitHub repository octoprint/octoprint prior to 1.8.0.

Weakness: CWE-79

Which versions are affected by CVE-2022-1430?

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-1430?

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-1430 being exploited?

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

Sources

Also known as GHSA-x7r7-wmj8-vv5g, PYSEC-2022-200.

Is CVE-2022-1430 in your software?

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

Check your SBOMs for free