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

- Severity: Low 1.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- 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 38% of CVEs (2026-12-01)
- Published: 2026-11-30T16:20:34.430Z
- Modified: 2026-11-30T18:18:56.927Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- OctoPrint OctoPrint: up to 2.0.2

## Every score

- VulnCheck: CVSS:4.0 1.0 Low `CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/OctoPrint/OctoPrint/issues/5508> (issue-tracking)
- <https://github.com/OctoPrint/OctoPrint/pull/5509> (issue-tracking, patch)
- <https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js#L990-L995> (technical-description)
- <https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js#L841-L846> (technical-description)
- <https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py#L3129-L3136> (technical-description)
- <https://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-139901](https://www.cve.org/CVERecord?id=CVE-2026-139901), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139901](https://nvd.nist.gov/vuln/detail/CVE-2026-139901), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139901 · Whole record: https://cve.day/CVE-2026-139901.json · Rebuilt by cve.day 2026-11-30T18:32:31.711Z
