GHSA-mw4c-85wr-37rhLowCVSS 4.0
OctoPrint through 2.0.2 contains a stored cross-site scripting vulnerability that allows...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (8)
- https://nvd.nist.gov/vuln/detail/CVE-2026-139901
- https://github.com/OctoPrint/OctoPrint/issues/5508
- https://github.com/OctoPrint/OctoPrint/pull/5509
- 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://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation
- https://github.com/advisories/GHSA-mw4c-85wr-37rh