{"id":"CVE-2024-28237","published":"2024-03-18T21:17:08Z","modified":"2024-08-02T15:20:14Z","title":"OctoPrint XSS via the \"Snapshot Test\" feature in Classic Webcam plugin settings","vendor":"OctoPrint","product":"OctoPrint","tier":"tail","description":{"text":"OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.9.3 contain a vulnerability that allows malicious admins to configure or talk a victim with administrator rights into configuring a webcam snapshot URL which when tested through the \"Test\" button included in the web interface will execute JavaScript code in the victims browser when attempting to render the snapshot image. An attacker who successfully talked a victim with admin rights into performing a snapshot test with such a crafted URL could use this to retrieve or modify sensitive configuration settings, interrupt prints or otherwise interact with the OctoPrint instance in a malicious way. The vulnerability is patched in version 1.10.0rc3. OctoPrint administrators are strongly advised to thoroughly vet who has admin access to their installation and what settings they modify based on instructions by strangers.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00435,"percentile":0.38635,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-x7mf-wrh9-r76c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/779894c1bc6478332d14bc9ed1006df1354eb517","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":7.73},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"octoprint","affectedVersions":[{"vendor":"OctoPrint","product":"OctoPrint","versions":["<= 1.9.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-02T15:19:13.496816Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"OctoPrint","vulnerableRanges":["<1.10.0rc3","<1.10.0"],"patched":["1.10.0rc3","1.10.0"],"from":["GHSA-x7mf-wrh9-r76c","PYSEC-2024-179"],"provenance":"source"}],"summary":{"text":"OctoPrint's Classic Webcam plugin settings contain a cross-site scripting flaw in the \"Snapshot Test\" feature, which renders the configured webcam snapshot URL without neutralising script content. An attacker who already holds administrator rights, or who can persuade an administrator to enter a crafted snapshot URL and press the \"Test\" button, can run JavaScript in the victim's browser to read or change configuration, interrupt prints, or otherwise act on the instance, with the attack requiring local access, high privileges and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:41Z"},"euvd":{"id":"EUVD-2024-0121","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-3607","published":"2022-10-19","fixed":"1.8.3","kev":false},{"cve":"CVE-2023-41047","published":"2023-10-09","fixed":"1.9.3","kev":false},{"cve":"CVE-2024-23637","published":"2024-01-31","fixed":"1.10.0rc1","kev":false,"link":{"from":"CVE-2024-23637","to":"CVE-2024-28237","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:OctoPrint","fromFixed":"1.10.0rc1","toFixed":"1.10.0rc3","daysApart":47}]}},{"cve":"CVE-2024-28237","published":"2024-03-18","fixed":"1.10.0","kev":false},{"cve":"CVE-2024-32977","published":"2024-05-14","fixed":"1.10.1","kev":false,"link":{"from":"CVE-2024-28237","to":"CVE-2024-32977","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:OctoPrint","fromFixed":"1.10.0","toFixed":"1.10.1","daysApart":57}]}},{"cve":"CVE-2024-49377","published":"2024-11-05","fixed":"1.10.3","kev":false},{"cve":"CVE-2024-51493","published":"2024-11-05","fixed":"1.10.3","kev":false}],"package":"PyPI:OctoPrint"}}