OctoPrint through 2.0.2 Stored XSS via SD File List Deletion Confirmation
- State
- Published
- Severity
- 1.0 Low
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| OctoPrint OctoPrint | 2.0.2 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 1.0 Low | VulnCheck | |
| 3.1 | 4.0 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/OctoPrint/OctoPrint/issues/5508Issue Tracker
- https://github.com/OctoPrint/OctoPrint/pull/5509Issue TrackerPatch
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js#L990-L995Technical Details
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js#L841-L846Technical Details
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py#L3129-L3136Technical Details
- VulnCheck Advisory: OctoPrint through 2.0.2 Stored XSS via SD File List Deletion ConfirmationThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.