CVE-2025-64187: OctoPrint is vulnerable to XSS through Action Command Notifications and Prompts
Impact
OctoPrint versions up to and including 1.11.3 are affected by a vulnerability that allows injection of arbitrary HTML and JavaScript into Action Command notification and prompt popups generated by the printer.
An attacker who successfully convinces a victim to print a specially crafted file could exploit this issue to disrupt ongoing prints, extract information (including sensitive configuration settings, if the targeted user has the necessary permissions for that), or perform other actions on behalf of the targeted user within the OctoPrint instance.
Patches
The vulnerability will be patched in version 1.11.4.
Workaround
OctoPrint administrators can mitigate the risk by disabling popups: - for Action Command notifications, uncheck OctoPrint Settings -> Printer Notifications -> Enable popups - for Action Command prompts, set OctoPrint Settings -> Printer Dialogs -> Enable support -> Never
It is also strongly recommended to ensure that files being printed originate from trusted sources, and, whenever possible, are sliced with your own slicer.
Credits
This vulnerability was discovered and responsibly disclosed to OctoPrint by Jacopo Tediosi.
Other sources
OctoPrint provides a web interface for controlling consumer 3D printers. Versions 1.11.3 and below are affected by a vulnerability that allows injection of arbitrary HTML and JavaScript into Action Command notifications and prompts popups generated by the printer. An attacker who successfully convinces a victim to print a specially crafted file could exploit this issue to disrupt ongoing prints, extract information (including sensitive configuration settings, if the targeted user has the necessary permissions for that), or perform other actions on behalf of the targeted user within the OctoPrint instance. This issue is fixed in version 1.11.4.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-64187?
CVE-2025-64187 has a critical severity level due to the potential for arbitrary code execution through injected scripts.
How do I fix CVE-2025-64187?
To fix CVE-2025-64187, upgrade OctoPrint to version 1.11.4 or later.
What versions of OctoPrint are affected by CVE-2025-64187?
OctoPrint versions up to and including 1.11.3 are affected by CVE-2025-64187.
What kind of attack can exploit CVE-2025-64187?
CVE-2025-64187 can be exploited by an attacker injecting arbitrary HTML and JavaScript into Action Command notifications.
Who is impacted by CVE-2025-64187?
Users of OctoPrint versions 1.11.3 and lower are impacted by CVE-2025-64187 if they interact with notifications from untrusted sources.