{"id":"CVE-2026-123364","aliases":["CVE-2026-123364","GHSA-p623-mxf7-qxjm"],"related":[],"kind":"vulnerability","state":"published","title":"OctoPrint: Stored XSS via saved connection parameters","summary":"OctoPrint provides a web interface for controlling consumer 3D printers. From 2.0.0rc1 until 2.0.0rc7, an authenticated user can supply a crafted default port or baudrate through a connect request to the bundled Serial Connector plugin. OctoPrint persists these values in printerConnection.preferred.parameters.port or printerConnection.preferred.parameters.baudrate and renders them as HTML when another user views the saved connection parameters, allowing script execution in that user's browser and actions within the user's OctoPrint access. This issue is fixed in version 2.0.0rc7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OctoPrint provides a web interface for controlling consumer 3D printers. From 2.0.0rc1 until 2.0.0rc7, an authenticated user can supply a crafted default port or baudrate through a connect request to the bundled Serial Connector plugin. OctoPrint persists these values in printerConnection.preferred.parameters.port or printerConnection.preferred.parameters.baudrate and renders them as HTML when another user views the saved connection parameters, allowing script execution in that user's browser and actions within the user's OctoPrint access. This issue is fixed in version 2.0.0rc7.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nOctoPrint 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.\n\n## Patches\n\nThe vulnerability is patched in 2.0.0rc7.\n\n## Workaround\n\nCheck `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`. \n\n## Credits\n\nThis vulnerability was discovered and responsibly disclosed to OctoPrint by \"mahn-don\".\n\n## Timeline\n\n2026-10-14: Report received\n2026-10-14: Report acknowledged\n2026-10-14: Report verified\n2026-10-14: Fix ready for 2.0.0rc7\n2026-10-20: CVE requested","format":"markdown","source":"ghsa"}],"published":"2026-11-09T17:10:35.399Z","modified":"2026-11-14T02:16:47.083Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.4,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 2.0.0rc1, < 2.0.0rc7","status":"affected"}],"vendor":"OctoPrint","product":"OctoPrint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0rc1","status":"affected","fixed":"2.0.0rc7"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"ghsa"}],"references":[{"url":"https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-p623-mxf7-qxjm","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/059495787a1086868a28ba9eca8d089729242646","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OctoPrint/OctoPrint/releases/tag/2.0.0rc7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123364","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OctoPrint/OctoPrint","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-14T01:43:27.223Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-123364","url":"https://www.cve.org/CVERecord?id=CVE-2026-123364","licence":"CVE Terms of Use","modified":"2026-11-14T01:43:37.859Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p623-mxf7-qxjm","url":"https://github.com/advisories/GHSA-p623-mxf7-qxjm","licence":"CC-BY-4.0","modified":"2026-11-10T16:15:04.250Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-123364","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123364","licence":"Public domain","modified":"2026-11-14T02:16:47.083Z"}],"updatedAt":"2026-11-25T22:59:49.604Z","epss":{"score":0.00301,"percentile":0.246,"date":"2026-12-01T12:00:22.000Z"}}