{"id":"CVE-2026-35163","aliases":["CVE-2026-35163","GHSA-p6qx-ghxm-389h","PYSEC-2026-2688"],"related":[],"kind":"vulnerability","state":"published","title":"OctoPrint: XSS in Suppressed Command Notifications","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nOctoPrint 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.\n\nAn 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.\n\n### Patches\n\nThe vulnerability has been patched in version 1.11.8 and 2.0.0rc3.\n\n### Workaround\n\nOctoPrint administrators can mitigate the risk by disabling popups:\n- for Action Command notifications, set _OctoPrint Settings -> Serial Connection -> Behaviour -> Sanity Checking -> Display notifications for suppressed commands_ to _Never show notifications_\n\nIt 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.\n\n### Credits\n\nThis vulnerability was discovered and responsibly disclosed to OctoPrint by [Jacopo Tediosi](https://github.com/jacopotediosi).\n\n### Timeline\n\n2026-03-18: Report received\n2026-04-01: Report verified\n2026-04-01: Fix ready for 2.0.0\n2026-06-22: Fix backported to 1.11.x\n2026-06-23: Fix released with 1.11.8 and 2.0.0rc3","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-23T17:15:14.000Z","modified":"2026-10-14T19:10:00.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-80"],"affected":[{"ranges":[{"version":"< 1.11.8","status":"affected"},{"version":">= 2.0.0rc1, < 2.0.0rc3","status":"affected"}],"vendor":"OctoPrint","product":"OctoPrint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.8"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0rc1","status":"affected","fixed":"2.0.0rc3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.8"},{"type":"ecosystem","introduced":"2.0.0rc1","status":"affected","fixed":"2.0.0rc3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"pysec"}],"references":[{"url":"https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-p6qx-ghxm-389h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/42e0f9863935e136f04ed3c560cb96483a580d1b","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/6e3db9096f8a94f7c2249be24b6d03a7d9c12bc7","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.8","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OctoPrint/OctoPrint/releases/tag/2.0.0rc3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35163","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2026-2688.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/octoprint","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-p6qx-ghxm-389h","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T19:53:45.594Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35163","url":"https://www.cve.org/CVERecord?id=CVE-2026-35163","licence":"CVE Terms of Use","modified":"2026-08-21T19:53:55.905Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p6qx-ghxm-389h","url":"https://github.com/advisories/GHSA-p6qx-ghxm-389h","licence":"CC-BY-4.0","modified":"2026-08-21T18:30:08.073Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35163","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35163","licence":"Public domain","modified":"2026-10-14T19:10:00.297Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2688","url":"https://osv.dev/vulnerability/PYSEC-2026-2688","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:54.587Z"}],"updatedAt":"2026-11-25T22:59:34.810Z","epss":{"score":0.00139,"percentile":0.03446,"date":"2026-12-01T12:00:22.000Z"}}