CVE-2026-139901: OctoPrint through 2.0.2 Stored XSS via SD File List Deletion Confirmation
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
OctoPrint instances through 2.0.2 are exposed when an attacker has printer control and can cause crafted SD file names to appear in the file list. The stored payload executes when another user deletes the affected entry.
What does an attacker need to exploit it?
The attacker needs printer control and must be able to send M118 echo commands that emit a crafted file list. Exploitation also requires a separate user to interact with the malicious entry by deleting it.
What is the impact if the payload executes?
The script runs with the API permissions of the user who deletes the crafted file-list entry. The provided vector indicates low confidentiality and integrity impact, with no availability impact.