{"id":"CVE-2026-139901","summary":"OctoPrint through 2.0.2 Stored XSS via SD File List Deletion Confirmation","details":"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.","modified":"2026-12-01T21:02:40.214460309Z","published":"2026-11-30T16:20:34.430Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139901.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139901.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139901"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation"},{"type":"REPORT","url":"https://github.com/OctoPrint/OctoPrint/issues/5508"},{"type":"FIX","url":"https://github.com/OctoPrint/OctoPrint/pull/5509"},{"type":"PACKAGE","url":"https://github.com/OctoPrint/OctoPrint"},{"type":"ARTICLE","url":"https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py#L3129-L3136"},{"type":"ARTICLE","url":"https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js#L841-L846"},{"type":"ARTICLE","url":"https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js#L990-L995"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/octoprint/octoprint","events":[{"introduced":"0"},{"last_affected":"38fd87601464ec921eacab28315b2d7944f13f07"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"2.0.2"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"0"},{"last_affected":"2.0.2"}],"source":"DESCRIPTION"}]}}],"versions":["2.0.2","2.0.1","2.0.0","2.0.0rc7","2.0.0rc6","2.0.0rc5","2.0.0rc4","2.0.0rc3","2.0.0rc2","2.0.0rc1","1.11.0rc1","1.10.0rc1","1.9.0rc1","1.8.0rc1","1.7.0rc1","1.6.0rc1","1.5.0rc1","1.4.0rc6","1.4.0rc5","1.4.0rc4","1.4.0rc3","1.4.0rc2","1.4.0rc1","1.2.18","1.2.18rc1","1.2.17rc3","1.2.17rc2","1.2.17rc1","1.2.16","1.2.16rc2","1.2.16rc1","1.2.15","1.2.14","1.2.13","1.2.12","1.2.11","1.2.10","1.2.9","1.2.8","1.2.7","1.2.6","1.2.5","1.2.4","1.2.3","1.2.2","1.2.1","1.2.0","1.2.0-rc3","1.2.0-rc2","1.2.0-rc1","1.2.0-dev","1.1.0-dev"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139901.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"}]}