CVE-2026-139901
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| octoprint | octoprint | {"endIncluding":"2.0.2"} | |
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
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.