Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain printer control access
-
DeliverySend M118 echo with crafted SD filename
-
ExploitPayload stored in file list
-
ExecutionVictim deletes entry, script executes
-
ImpactAct with victim's API permissions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to have printer-control capability - the ability to send M118 echo commands over the serial connection (e.g., a low-privileged authenticated user with control rights, or a malicious/compromised printer/firmware) - and to plant an unsanitized SD-card filename that produces a crafted file list. Execution is not self-contained: a SECOND, separate OctoPrint user must subsequently view and delete the planted SD file entry, at which point the script runs in that victim's browser with the victim's API permissions. Limiting factors that reduce realistic risk: adjacent (not internet-wide) access, PR:L printer-control privileges, mandatory victim interaction (the deletion action), and the high-complexity multi-step chain - none of which hold against a default-only, single-user deployment. |
| Impact | All available signals point to genuinely low real-world risk, consistent with the vuln.today 'monitor' decision label and the input CVSS 4.0 base score of 1.0. The CVSS 4.0 vector (AV:A/AC:H/AT:P/PR:L/UI:P) describes a severity-constrained issue: adjacent access, high attack complexity, a present attack requirement, required low-level privileges (printer control), and passive victim interaction, all combining to Low vulnerable- and subsequent-system impact (VC:L/VI:L/SC:L/SI:L). No EPSS score was supplied, so statistical exploitation probability cannot be cited; its absence is noted, not treated as zero. The vulnerability is NOT in CISA KEV and no PoC or exploit reference appears among the inputs (the references are an NVD source-code citation, a GitHub issue/PR, and a VulnCheck advisory), so exploitation status is 'no public exploit identified at time of analysis.' There is no signal conflict here - a low CVSS, a 'monitor' label, no KEV, and no PoC all agree. This is a low-priority stored-XSS hardening fix rather than an urgent threat; the realistic deterrent is the multi-precondition chain (attacker needs printer control AND a second user must delete the planted entry), which makes opportunistic or automated exploitation impractical. |
| Exploit ScenarioDerived | An attacker who already has printer-control access (or operates a malicious/compromised printer) sends M118 echo commands that emit a crafted SD-card file list containing an unsanitized filename carrying HTML/script. When a different OctoPrint user later views and deletes that SD file entry, the deletion-confirmation rendering executes the injected script in their browser, acting with that victim's API permissions. No public exploit code is identified at time of analysis, and the chain's high complexity and required victim interaction make it difficult to trigger reliably. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Stored cross-site scripting in OctoPrint through 2.0.2 allows a user with printer-control capability to plant an unsanitized SD-card file name (delivered by emitting a crafted file list over M118 echo commands) so that script executes in a different user's browser when that second user deletes the entry, running with the victim's own API permissions. The chain is adjacent-network, authenticated at low privilege, and requires the victim's interaction, which is why the supplied CVSS 4.0 base score is 1.0 and the vuln.today priority label is 'monitor'. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV.
RemediationAI
Upstream fix is available in pull request https://github.com/OctoPrint/OctoPrint/pull/5509, which escapes the interpolated values with _.escape(); a tagged release containing that change is not independently confirmed from the supplied data, so confirm the fixed version against the issue at https://github.com/OctoPrint/OctoPrint/issues/5508 and the advisory at https://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation before relying on a version number. Until a build containing the fix is deployed, the practical exposure reduction is to limit who holds printer-control (M118/serial command) capability to trusted operators, since the injection primitive is the ability to emit a crafted SD file list - trade-off: this restricts legitimate low-privileged users and does not help single-user setups where the same account holds all rights. Because the trigger requires a second user to open the SD file deletion confirmation, avoid deleting SD-card file entries from the web UI on multi-user instances until patched, and review planted SD file names for HTML/script content - trade-off: these are procedural controls that depend on operator discipline and do not fix the underlying missing output encoding.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OctoPrint is a Python/Flask web front end for 3D printers whose UI is built on jQuery, Knockout and underscore-style templating helpers. The root cause is CWE-79 (improper neutralization of input during web page generation): the serial connector parses printer responses - including M118 echo output - into SD file list entries (serial_comm.py, lines 3129-3136 as referenced), and the front-end helpers (helpers.js lines 841-846) and files view model (files.js lines 990-995) interpolate those file names into the SD-file deletion confirmation text without escaping. The referenced upstream pull request 5509 shows the fix pattern: _.escape() is applied to interpolated values across many bundled plugin JavaScript templates (achievements, customcontrolmanager, health_check, logging, pluginmanager, softwareupdate, uploadmanager) and numeric %(... )d format specifiers replace string ones, indicating a templating-escaping hardening sweep rather than a single isolated sink. The input that reaches the sink is printer/serial-derived, so the attacker position is control of the serial output path rather than a normal HTTP request; the exact parsing path beyond M118 echo emission is only described at the level of the linked source lines.
Know when Octoprint gets its next vulnerability
- 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:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Attacker needs printer-control privileges (PR:L) over adjacent access (AV:A), a convoluted stored-injection chain (AC:H) requiring a second user to delete the entry (UI:R); script runs with the victim's authority (S:C) for limited C:L/I:L, no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
OctoPrint through 2.0.2 contains a stored cross-site scripting vulnerability that allows attackers to inject HTML by planting unsanitized printer SD file names. Attackers with printer control can send M118 echo commands emitting a crafted file list, executing script when another user deletes the entry and acting with their API permissions.
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.
OctoPrint provides a web interface for controlling consumer 3D printers. Rated critical severity (CVSS 9.4), this vulner
OctoPrint through 1.3.9 allows remote attackers to obtain sensitive information or cause a denial of service via HTTP re
Improper Privilege Management in GitHub repository octoprint/octoprint prior to 1.8.3. Rated high severity (CVSS 8.8), t
Unverified Password Change in GitHub repository octoprint/octoprint prior to 1.8.3. Rated high severity (CVSS 7.8), this
OctoPrint provides a web interface for controlling consumer 3D printers. Rated high severity (CVSS 7.5), this vulnerabil
An attacker can freely brute force username and password and can takeover any account. Rated high severity (CVSS 7.5), t
Cross-site Scripting (XSS) - DOM in GitHub repository octoprint/octoprint prior to 1.8.0. Rated high severity (CVSS 7.5)
The Logging subsystem in OctoPrint before 1.6.0 has incorrect access control because it attempts to manage files that ar
Cross-site Scripting (XSS) - Generic in GitHub repository octoprint/octoprint prior to 1.8.0. Rated medium severity (CVS
OctoPrint before 1.6.0 allows XSS because API error messages include the values of input parameters. Rated medium severi
Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in GitHub repository octoprint/o
Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3. Rated medium se
EUVD-2026-139541
GHSA-mw4c-85wr-37rh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB