OctoPrint: Stored XSS via saved connection parameters
Impact
OctoPrint versions 2.0.0rc1 up until version 2.0.0rc6 are susceptible to cross-site scripting via a specially crafted default port or baudrate setting on the bundled Serial Connector plugin, supplied via the API as new defaults during a connect request.
Patches
The vulnerability is patched in 2.0.0rc7.
Workaround
Check config.yaml for Javascript fragments in printerConnection.preferred.parameters.port or printerConnection.preferred.parameters.baudrate. If found, remove them. You can check who of your users had access to your instance since you flashed 2.0.0rc1 or above via auth.log.
Credits
This vulnerability was discovered and responsibly disclosed to OctoPrint by "mahn-don".
Timeline
2026-10-14: Report received 2026-10-14: Report acknowledged 2026-10-14: Report verified 2026-10-14: Fix ready for 2.0.0rc7 2026-10-20: CVE requested
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | octoprint | >= 2.0.0rc1, < 2.0.0rc7 | 2.0.0rc7 |
References
- https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-p623-mxf7-qxjm
- https://nvd.nist.gov/vuln/detail/CVE-2026-123364
- https://github.com/OctoPrint/OctoPrint/commit/059495787a1086868a28ba9eca8d089729242646
- https://github.com/OctoPrint/OctoPrint
- https://github.com/OctoPrint/OctoPrint/releases/tag/2.0.0rc7
- CVSS vector
CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N- Weakness (CWE)
CWE-79- Platform
- Python (PyPI)
- Package
octoprint- Disclosed
- 10.11.2026
- Updated
- 10.11.2026 18:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-p623-mxf7-qxjm - CC BY 4.0
Vulnerability history: octoprint
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 25
- First → latest
- 05.2021 11.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 8
- Medium 13
- Low 3
Disclosures per year
- 2021: 2
- 2022: 8
- 2023: 1
- 2024: 5
- 2025: 5
- 2026: 4
-
OctoPrint: Stored XSS via saved connection parameters this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.