Read the docs

Stored cross-site scripting in OctoPrint via SD file list

Priority LOW 4CWE-79Published · Updated

Key facts

Attack vector
Adjacent network
Privileges required
Low
User interaction
Passive
Attack complexity
High
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

OctoPrint through 2.0.2 contains a stored cross-site scripting flaw (CWE-79) because it does not sanitize printer SD file names before showing them in the file list. An attacker with printer control can plant a crafted file name through M118 echo commands, so script runs when another user deletes that entry and acts with that user's API permissions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
OctoPrintOctoPrintup to 2.0.2—No fix listedCNA
  • OctoPrint VendorOctoPrint Affected up to 2.0.2 Fixed in — No fix listed CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:*——OctoPrint
  • cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:* Versions — — ·OctoPrint

Remediation

The sources list no fixed version for OctoPrint.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-139901
  2. 2026-11-30 CISA SSVC decision points changed
  3. 2026-11-30 Alias added: GHSA-mw4c-85wr-37rh

References

  • TI-2022-02830 Improper Privilege Management in octoprint/octoprint CVSS 3.1HIGH 8.8
  • TI-2022-03320 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in octoprint/octoprint CVSS 3.1MEDIUM 6.0
  • TI-2022-02664 Unrestricted Upload of File with Dangerous Type in octoprint/octoprint CVSS 3.1MEDIUM 5.4
  • TI-2024-18796 OctoPrint XSS via the "Snapshot Test" feature in Classic Webcam plugin settings CVSS 3.1MEDIUM 4.8
  • TI-2022-02678 Insufficient Session Expiration in octoprint/octoprint CVSS 3.1MEDIUM 4.4
  • TI-2024-21843 OctoPrint Authentication Bypass via X-Forwarded-For Header when autologinLocal is enabled CVSS 3.1CRITICAL 9.4
See all 26 →

Sources