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.
Published: 2026-08-21
Score: 4.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting in OctoPrint suppressed command notifications
Action: Apply Patch
AI Analysis

Impact

The vulnerability allows a malicious actor to embed HTML and JavaScript into the PNotify pop‑ups that display printer commands and messages. Because these values are inserted into the page without escaping, an attacker who can coax a user to print a crafted file can execute arbitrary script in the victim’s browser session. This can lead to information disclosure of sensitive OctoPrint settings, disruption of ongoing prints, or execution of unintended actions under the victim’s account.

Affected Systems

OctoPrint’s web interface, versions older than 1.11.8 and 2.0.0rc3

Risk and Exploitability

The CVSS score is 4.6, indicating moderate severity. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the victim to load a malicious G‑code file into OctoPrint, after which the embedded script runs in the local browser context. While the attack vector is not directly remote, it poses a risk to users who accept unknown print files, and the potential impact spans confidentiality, integrity, and availability within the user session.

Generated by OpenCVE AI on August 21, 2026 at 19:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OctoPrint to version 1.11.8 or later (2.0.0rc3 or newer).
  • If an upgrade is not immediately possible, modify the terminal.js viewmodel to escape the contents of payload.command and payload.message before rendering them in PNotify, or disable suppressed command notifications entirely.
  • Restrict G‑code file uploads to authenticated and trusted users, and validate file contents to ensure they do not contain malicious commands.
  • Enforce a strong Content Security Policy on the OctoPrint web interface to block inline script execution.

Generated by OpenCVE AI on August 21, 2026 at 19:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-p6qx-ghxm-389h OctoPrint has XSS in its Suppressed Command Notifications
History

Fri, 21 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Octoprint
Octoprint octoprint
Vendors & Products Octoprint
Octoprint octoprint

Fri, 21 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
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.
Title OctoPrint: XSS in Suppressed Command Notifications
Weaknesses CWE-80
References
Metrics cvssV4_0

{'score': 4.6, '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'}


Subscriptions

Octoprint Octoprint
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T19:53:55.905Z

Reserved: 2026-04-01T17:26:21.132Z

Link: CVE-2026-35163

cve-icon Vulnrichment

Updated: 2026-08-21T19:53:51.597Z

cve-icon NVD

Status : Received

Published: 2026-08-21T19:17:01.170

Modified: 2026-08-21T20:16:34.603

Link: CVE-2026-35163

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T20:30:07Z

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)