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.
CVE-2026-139901
CVSS base score
4.0 (v3.1)
Severity
MEDIUM
Attack vector
Adjacent_network
Weakness
CWE-79
Last modified
November 30, 2026
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N