OctoPrint through 2.0.2 contains a stored cross-site scripting vulnerability that allows attackers to inject HTML by
Source GCVE Database
Not known to be exploited · CVSS 1.0 Low · fixed in 2.0.3 : update victim user. OctoPrint when convenient.
Data as of 30 Nov 2026, 19:52 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 1.0 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.0 |
- Affects
- victim user. OctoPrint through 2.0.2
- Patch
- Available – fixed in 2.0.3
CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
AI-suggested
If you cannot patch yet, restrict printer control access to trusted users only to reduce risk.
Description
OctoPrint versions through 2.0.2 have a stored cross-site scripting (XSS) vulnerability. This flaw allows attackers with printer control to inject malicious HTML by planting unsanitized printer SD file names via crafted M118 echo commands. The injected script executes when another user deletes the affected entry, running with the API permissions of the victim user.
References
- nvd.nist.gov/vuln/detail/CVE-2026-139901 (opens in a new tab)
- github.com/OctoPrint/OctoPrint/issues/5508 (opens in a new tab)
- github.com/OctoPrint/OctoPrint/pull/5509 (opens in a new tab)
- github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py (opens in a new tab)
- github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js (opens in a new tab)
- github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js (opens in a new tab)
- vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation (opens in a new tab)