Cross-site scripting in OctoPrint - CVE-2024-28237
Published: March 18, 2024 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows an administrator to execute JavaScript in another administrator's browser and access or modify sensitive OctoPrint settings.
The vulnerability exists due to improper neutralization of a malicious snapshot response content type in the Classic Webcam plugin when its Snapshot Test feature renders an image. An administrator can configure a crafted snapshot URL and induce the victim administrator to click Test, triggering the injected script.