# GHSA-P623-MXF7-QXJM: OctoPrint: Stored XSS via saved connection parameters

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-11-10
- Modified: 2026-11-10

## Tracked as

- [CVE-2026-123364](https://cve.now/CVE-2026-123364.md): OctoPrint stored XSS in saved connection parameters

## Affected versions

- octoprint (PyPI): from 2.0.0rc1, fixed in 2.0.0rc7

## Description

## 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

## 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

Page: https://cve.now/GHSA-P623-MXF7-QXJM

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
