CVE-2025-64187: Octoprint Cross-Site Scripting Vulnerability
MODERATECVE-2025-64187 is a MODERATE cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Octoprint libraries in the PyPI ecosystem. The issue involves octoprint vulnerable to xss in action commands notification and prompt. Remediation is available by upgrading affected packages to version 1.11.4.
CVE-2025-64187 at a Glance
How to Fix CVE-2025-64187
To remediate this vulnerability, upgrade all affected Octoprint dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install octoprint>=1.11.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show octoprint
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-64187, inspect your installed packages using pip:
pip show octoprint
Analyze the terminal output to locate any version of Octoprint in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.4), your application is affected.
Note: The pip show octoprint command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Octoprint, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64187 Affected Octoprint Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
octoprint
|
PyPI |
< 1.11.4
|
1.11.4
|
References
Frequently Asked Questions
What is CVE-2025-64187?
Which Octoprint versions are affected?
What version fixes CVE-2025-64187?
Is octoprint affected?
What CWE is associated with CVE-2025-64187?
How can I check PyPI dependencies for CVE-2025-64187?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-crvm-xjhm-9h29",
"modified" : "2025-11-07T16:42:35Z",
"published" : "2025-11-04T15:42:48Z",
"aliases" : [ "CVE-2025-64187" ],
"summary" : "OctoPrint vulnerable to XSS in Action Commands Notification and Prompt",
"details" : "### Impact\n\nOctoPrint versions up to and including 1.11.3 are affected by a vulnerability that allows injection of arbitrary HTML and JavaScript into Action Command notification and prompt popups generated by the printer.\n\nAn attacker who successfully convinces a victim to print a specially crafted file could exploit this issue to disrupt ongoing prints, extract information (including sensitive configuration settings, if the targeted user has the necessary permissions for that), or perform other actions on behalf of the targeted user within the OctoPrint instance.\n\n### Patches\n\nThe vulnerability will be patched in version 1.11.4.\n\n### Workaround\n\nOctoPrint administrators can mitigate the risk by disabling popups:\n- for Action Command notifications, uncheck _OctoPrint Settings -> Printer Notifications -> Enable popups_\n- for Action Command prompts, set _OctoPrint Settings -> Printer Dialogs -> Enable support -> Never_\n\nIt is also strongly recommended to ensure that files being printed originate from trusted sources, and, whenever possible, are sliced with your own slicer.\n\n### Credits\n\nThis vulnerability was discovered and responsibly disclosed to OctoPrint by [Jacopo Tediosi](https://github.com/jacopotediosi).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "octoprint"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.11.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-crvm-xjhm-9h29"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64187"
}, {
"type" : "WEB",
"url" : "https://github.com/OctoPrint/OctoPrint/commit/9112e07b1085f4c1ee9eefc67985809251057a44"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OctoPrint/OctoPrint"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-04T15:42:48Z",
"nvd_published_at" : "2025-11-07T04:15:47Z"
}
}