4.6medium
OctoPrint: XSS in Suppressed Command Notifications
- Severity
- 4.6medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p6qx-ghxm-389hPYSEC-2026-2688
Description
OctoPrint provides a web interface for controlling consumer 3D printers. Prior to 1.11.8 and 2.0.0rc3, Suppressed Command notification popups use PNotify rendering for printer-controlled payload.command and payload.message values in src/octoprint/static/js/app/viewmodels/terminal.js without HTML escaping. An attacker who convinces a victim to print a crafted file can inject HTML and JavaScript into the notification, disrupt prints, read information available to the victim including sensitive settings when permitted, or perform actions in the victim's OctoPrint session. This issue is fixed in versions 1.11.8 and 2.0.0rc3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OctoPrint OctoPrint | < 1.11.8, >= 2.0.0rc1, < 2.0.0rc3 | CVE List |
| octoprint (PyPI) | before 1.11.8, from 2.0.0rc1 before 2.0.0rc3 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 4.6medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
OctoPrint provides a web interface for controlling consumer 3D printers. Prior to 1.11.8 and 2.0.0rc3, Suppressed Command notification popups use PNotify rendering for printer-controlled payload.command and payload.message values in src/octoprint/static/js/app/viewmodels/terminal.js without HTML escaping. An attacker who convinces a victim to print a crafted file can inject HTML and JavaScript into the notification, disrupt prints, read information available to the victim including sensitive settings when permitted, or perform actions in the victim's OctoPrint session. This issue is fixed in versions 1.11.8 and 2.0.0rc3.
GitHub Advisory Database
Impact
OctoPrint versions up to and including 1.11.7 as well as 2.0.0rc1 and 2.0.0rc2 are affected by a vulnerability that allows injection of arbitrary HTML and JavaScript into Suppressed Command notifications 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 has been patched in version 1.11.8 and 2.0.0rc3.
Workaround
OctoPrint administrators can mitigate the risk by disabling popups:
- for Action Command notifications, set OctoPrint Settings -> Serial Connection -> Behaviour -> Sanity Checking -> Display notifications for suppressed commands to Never show notifications
It is also strongly recommended to ensure that files being printed originate from trusted sources, and, whenever possible, are sliced with an application's own slicer.
Credits
This vulnerability was discovered and responsibly disclosed to OctoPrint by Jacopo Tediosi.
Timeline
2026-03-18: Report received 2026-04-01: Report verified 2026-04-01: Fix ready for 2.0.0 2026-06-22: Fix backported to 1.11.x 2026-06-23: Fix released with 1.11.8 and 2.0.0rc3
NVD (es)
OctoPrint proporciona una interfaz web para controlar impresoras 3D de consumo. Antes de las versiones 1.11.8 y 2.0.0rc3, las ventanas emergentes de notificación de Comando Suprimido utilizan el renderizado de PNotify para los valores payload.command y payload.message controlados por la impresora en src/octoprint/static/js/app/viewmodels/terminal.js sin escape HTML. Un atacante que convence a una víctima para imprimir un archivo manipulado puede inyectar HTML y JavaScript en la notificación, interrumpir impresiones, leer información disponible para la víctima, incluyendo configuraciones sensibles cuando esté permitido, o realizar acciones en la sesión de OctoPrint de la víctima. Este problema está solucionado en las versiones 1.11.8 y 2.0.0rc3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35163 changed 2026-08-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p6qx-ghxm-389h changed 2026-08-21 | CC-BY-4.0 |
| NVD | CVE-2026-35163 changed 2026-10-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2688 changed 2026-07-13 | CC-BY-4.0 |