Skip to main content

OctoPrint CVE-2026-139901

| EUVDEUVD-2026-139541 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-30 disclosure@vulncheck.com GHSA-mw4c-85wr-37rh
1.0
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain printer control access
  2. Delivery
    Send M118 echo with crafted SD filename
  3. Exploit
    Payload stored in file list
  4. Execution
    Victim deletes entry, script executes
  5. Impact
    Act 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

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

OctoPrint 0 ≤2.0.2

Affected Packages

euvd octoprint no fix

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

Vendor (vulncheck) PRIMARY 1.0 LOW
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
vuln.today AI 4.0 MEDIUM

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.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Adjacent
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Low
niche 3D-printer host software, maker/hobbyist use, no broad enterprise footprint
Data Quality
4 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 LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

5
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +5
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.

CVE-2024-32977 CRITICAL POC
9.4 May 14

OctoPrint provides a web interface for controlling consumer 3D printers. Rated critical severity (CVSS 9.4), this vulner

CVE-2018-16710 CRITICAL POC
9.1 Sep 07

OctoPrint through 1.3.9 allows remote attackers to obtain sensitive information or cause a denial of service via HTTP re

CVE-2022-3068 HIGH POC
8.8 Sep 21

Improper Privilege Management in GitHub repository octoprint/octoprint prior to 1.8.3. Rated high severity (CVSS 8.8), t

CVE-2022-2930 HIGH POC
7.8 Aug 22

Unverified Password Change in GitHub repository octoprint/octoprint prior to 1.8.3. Rated high severity (CVSS 7.8), this

CVE-2025-58180 HIGH POC
7.5 Sep 09

OctoPrint provides a web interface for controlling consumer 3D printers. Rated high severity (CVSS 7.5), this vulnerabil

CVE-2022-2822 HIGH POC
7.5 Aug 15

An attacker can freely brute force username and password and can takeover any account. Rated high severity (CVSS 7.5), t

CVE-2022-1430 HIGH POC
7.5 May 18

Cross-site Scripting (XSS) - DOM in GitHub repository octoprint/octoprint prior to 1.8.0. Rated high severity (CVSS 7.5)

CVE-2021-32560 MEDIUM POC
6.5 May 11

The Logging subsystem in OctoPrint before 1.6.0 has incorrect access control because it attempts to manage files that ar

CVE-2022-1432 MEDIUM POC
6.4 May 18

Cross-site Scripting (XSS) - Generic in GitHub repository octoprint/octoprint prior to 1.8.0. Rated medium severity (CVS

CVE-2021-32561 MEDIUM POC
6.1 May 11

OctoPrint before 1.6.0 allows XSS because API error messages include the values of input parameters. Rated medium severi

CVE-2022-3607 MEDIUM POC
6.0 Oct 19

Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in GitHub repository octoprint/o

CVE-2022-2872 MEDIUM POC
5.4 Sep 21

Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3. Rated medium se

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