CVE-2026-139901: OctoPrint through 2.0.2 Stored XSS via SD File List Deletion Confirmation

Published Nov 30, 2026
·
Updated

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

1 affected component
OctoPrint OctoPrint<=2.0.2

Event History

Nov 30, 2026
CVE Published
via MITRE·04:20 PM
Data Sourced
via MITRE·04:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203