# CVE-2024-28237: OctoPrint XSS via the "Snapshot Test" feature in Classic Webcam plugin settings

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-18T20:29:45.000Z
- Modified: 2026-06-17T07:21:14.340Z
- Also known as: GHSA-x7mf-wrh9-r76c, PYSEC-2024-179
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- OctoPrint OctoPrint: <= 1.9.3; up to 1.9.3; before 1.10.0; 1.10.0
- octoprint (PyPI): before 1.10.0rc3; before 779894c1bc6478332d14bc9ed1006df1354eb517; before 1.10.0

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-x7mf-wrh9-r76c> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/OctoPrint/OctoPrint/commit/779894c1bc6478332d14bc9ed1006df1354eb517> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28237> (advisory)
- <https://github.com/OctoPrint/OctoPrint> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2024-179.yaml> (web)
- <https://github.com/advisories/GHSA-x7mf-wrh9-r76c> (advisory)

## Sources

- CVE List: [CVE-2024-28237](https://www.cve.org/CVERecord?id=CVE-2024-28237), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-x7mf-wrh9-r76c](https://github.com/advisories/GHSA-x7mf-wrh9-r76c), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2024-28237](https://nvd.nist.gov/vuln/detail/CVE-2024-28237), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-179](https://osv.dev/vulnerability/PYSEC-2024-179), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-28237 · Whole record: https://cve.day/CVE-2024-28237.json · Rebuilt by cve.day 2026-11-25T22:58:37.688Z
