Skip to main content

OctoPrint CVE-2026-35163

| EUVDEUVD-2026-64043 MEDIUM
Basic XSS (CWE-80)
2026-06-23 https://github.com/OctoPrint/OctoPrint GHSA-p6qx-ghxm-389h PYSEC-2026-2688
4.6
CVSS 4.0 · Vendor: https://github.com/OctoPrint/OctoPrint
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft G-code file with JavaScript XSS payload in suppressed command
  2. Delivery
    Deliver file to victim via social engineering or shared repository
  3. Exploit
    Victim uploads file and initiates print job
  4. Install
    Printer firmware issues suppressed command containing payload
  5. C2
    OctoPrint renders unsanitized notification popup in victim's browser
  6. Execute
    Injected JavaScript executes in victim's authenticated session
  7. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OctoPrint < 1.11.8
OctoPrint 2.0.0rc1, < 2.0.0rc3

Affected Packages

pypi octoprint fix: 1.11.8, 2.0.0rc3
euvd octoprint_2_0_0rc1 fix: 2.0.0rc3

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

Vendor (https://github.com/OctoPrint/OctoPrint) PRIMARY 4.6 MEDIUM
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
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/OctoPrint/OctoPrint).

CVSS VectorVendor: https://github.com/OctoPrint/OctoPrint

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Aug 21, 2026 - 19:22 NVD
4.6 (MEDIUM)

DescriptionCVE.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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular open-source 3D printer management UI, primarily hobbyist and maker deployments
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy