Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft G-code file with JavaScript XSS payload in suppressed command
-
DeliveryDeliver file to victim via social engineering or shared repository
-
ExploitVictim uploads file and initiates print job
-
InstallPrinter firmware issues suppressed command containing payload
-
C2OctoPrint renders unsanitized notification popup in victim's browser
-
ExecuteInjected JavaScript executes in victim's authenticated session
-
ImpactExfiltrate API keys or perform unauthorized actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the 'Display notifications for suppressed commands' feature in OctoPrint's serial connection settings is active (the advisory's workaround specifically targets this setting, indicating it must be enabled for the popup to trigger). The attacker must deliver a specially crafted G-code file to the victim - this requires either social engineering the victim into downloading an external file, compromising a shared file repository the victim trusts, or having some other delivery mechanism; the attacker does not need any authenticated access to the OctoPrint instance itself. The victim must actively initiate a print job with the malicious file (user interaction is mandatory - exploitation cannot be triggered remotely without this step). Sensitive data extraction (API keys, configuration credentials) is conditional on the victim holding OctoPrint administrator or operator permissions; limited-privilege users would still be subject to session-scoped action hijacking and print disruption. Exploitation is not possible against instances where all printed files originate exclusively from trusted, internally controlled sources. |
| Impact | No CVSS vector or EPSS score is present in the available data, limiting quantitative risk comparison - severity metrics are therefore inferred from the description, CWE, and attack mechanics rather than confirmed by NVD or the vendor. The vulnerability is not listed in CISA KEV and no public exploit code has been identified, indicating no confirmed active exploitation at time of analysis. The primary mitigating factor is the mandatory user interaction requirement: an attacker must convince a victim to print a specifically crafted file, which requires a social engineering step or compromise of a shared file repository. Impact is context-dependent - extraction of sensitive configuration data, including API keys, is only possible if the victim holds administrative permissions. For deployments where users regularly print files from external or community sources (common in the maker/hobbyist ecosystem), real-world risk is meaningful. For isolated deployments printing only internally generated files, exploitability is negligible. The combination of no KEV listing, no known POC, and required user interaction places this at moderate real-world priority despite its potential for high-impact data exfiltration in permissioned sessions. |
| Exploit ScenarioDerived | An attacker crafts a G-code file embedding suppressed commands whose output contains a JavaScript payload (e.g., a fetch call exfiltrating document cookies or OctoPrint API keys to an attacker-controlled endpoint) and distributes it via a community print file repository, forum post, or direct message. A victim with OctoPrint administrator privileges downloads and prints the file; when the printer processes the suppressed command, OctoPrint renders the unsanitized notification popup in the victim's browser, executing the injected script. The attacker's server receives the exfiltrated API key, granting persistent access to the OctoPrint instance. No public exploit code has been identified at time of analysis, but the attack is straightforward to implement given the nature of the CWE-80 class. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Stored XSS in OctoPrint's Suppressed Command Notifications feature enables injection of arbitrary HTML and JavaScript into browser popups triggered by specially crafted G-code print files. Versions up to and including 1.11.7 and pre-release builds 2.0.0rc1 and 2.0.0rc2 are affected. An attacker who successfully delivers a malicious G-code file to a victim can execute scripts in the victim's authenticated browser session, enabling exfiltration of sensitive OctoPrint configuration (including API keys and credentials for privileged users), unauthorized actions within the instance, or disruption of active print jobs. No public exploit has been identified at time of analysis, and the vulnerability was responsibly disclosed.
RemediationAI
Upgrade OctoPrint to version 1.11.8 (stable branch) or 2.0.0rc3 (pre-release branch), both released 2026-06-23, via pip install --upgrade octoprint or pip install octoprint==1.11.8. These releases contain the vendor-confirmed patch for this XSS vulnerability. As an immediate workaround that fully eliminates the attack surface without patching, administrators should navigate to OctoPrint Settings → Serial Connection → Behaviour → Sanity Checking and set 'Display notifications for suppressed commands' to 'Never show notifications' - this disables the vulnerable popup component entirely with no impact on print functionality. Additionally, enforce a policy of only printing G-code files sourced from trusted origins, and prefer locally slicing files using a controlled application rather than accepting pre-sliced files from third parties. The full advisory and patch details are at https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-p6qx-ghxm-389h.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OctoPrint is an open-source, web-based 3D printer management interface distributed as a Python pip package (pkg:pip/octoprint). The vulnerable component is the 'Suppressed Command Notifications' popup system, which displays in-browser alerts when the printer firmware issues commands that OctoPrint suppresses via its serial communication layer. CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page - Basic XSS) identifies the root cause: content derived from suppressed G-code commands is rendered into the DOM popup without adequate HTML encoding or sanitization. Because this content ultimately originates from attacker-controlled data embedded in a G-code file, the browser executes injected scripts in the context of the victim's authenticated OctoPrint session. Affected packages are pkg:pip/octoprint <= 1.11.7 and >= 2.0.0rc1, <= 2.0.0rc2.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
No attacker authentication required (PR:N); mandatory victim print action (UI:R); XSS crosses browser scope boundary (S:C); impact limited to partial C/I/A depending on victim permissions.
Primary rating from Vendor (https://github.com/OctoPrint/OctoPrint).
CVSS VectorVendor: https://github.com/OctoPrint/OctoPrint
Lifecycle Timeline
1DescriptionCVE.org
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
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-64043
GHSA-p6qx-ghxm-389h
NVD
CVE.org
EPSS
Exploit-DB