MEDIUM · CVSS 4 Published: 2026-11-30
CVE-2026-139901 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2026-139901 |
|---|---|
| Base Severity / Score | MEDIUM (4 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Weakness Classification | CWE-79 |
| Archive Categories | MEDIUM Advisories · 2026 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py#L3129-L3136
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js#L841-L846
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js#L990-L995
- https://github.com/OctoPrint/OctoPrint/issues/5508
- https://github.com/OctoPrint/OctoPrint/pull/5509
- https://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation
Related Security Advisories
CVE-2026-139884 MEDIUM 6
CVE-2026-139902 LOW 3.1
CVE-2026-139882 MEDIUM 6.5
CVE-2026-139883 MEDIUM 5.3
CVE-2026-139903 MEDIUM 6.5
CVE-2026-139904 MEDIUM 4.7
CVE-2026-137023 MEDIUM 6.3