OctoPrint through 2.0.2 Stored XSS via SD File List Deletion Confirmation
CVE-2026-139901Published 30 Nov 2026, 16:20 UTC
Real-world risk
0.1/ 10Low
Routine
If the vulnerable configuration applies to you: 0.2
PreliminaryFrom the CVSS vector only · confidence low
CVSS
1.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| OctoPrintNiche | <= 2.0.2 | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.034
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.034 × threat 0.850.087
- Rounded to one decimal between 0.1 and 100.1
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 0.1 (cvss fallback)
Weakness
CWE-79
References
- https://github.com/OctoPrint/OctoPrint/issues/5508issue-tracking
- https://github.com/OctoPrint/OctoPrint/pull/5509issue-tracking, patch
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/viewmodels/files.js#L990-L995technical-description
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/static/js/app/helpers.js#L841-L846technical-description
- https://github.com/OctoPrint/OctoPrint/blob/2.0.2/src/octoprint/plugins/serial_connector/serial_comm.py#L3129-L3136technical-description
- https://www.vulncheck.com/advisories/octoprint-through-2.0.2-stored-xss-via-sd-file-list-deletion-confirmationthird-party-advisory
- CVE-2026-139901 on CVE.org