Vulnerabilities in pkg:pypi/octoprint

PACKAGE
Advisory Identifier: GHSA-crvm-xjhm-9h29
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/octoprint

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/octoprint. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-crvm-xjhm-9h29 CVE-2025-64187 MODERATE OctoPrint vulnerable to XSS in Action Commands Notification and Prompt
GHSA-49mj-x8jp-qvfc CVE-2025-58180 HIGH OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload

CVE-2025-64187 at a Glance

CVE Identifier CVE-2025-64187
GHSA Identifier GHSA-crvm-xjhm-9h29
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Octoprint
Package Ecosystem PyPI
Published Date
Last Updated

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.

octoprint fixed: 1.11.4
pip install octoprint>=1.11.4
Verify Direct and Transitive Dependencies

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

### Impact OctoPrint 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. An 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. ### Patches The vulnerability will be patched in version 1.11.4. ### Workaround OctoPrint administrators can mitigate the risk by disabling popups: - for Action Command notifications, uncheck _OctoPrint Settings -> Printer Notifications -> Enable popups_ - for Action Command prompts, set _OctoPrint Settings -> Printer Dialogs -> Enable support -> Never_ It is also strongly recommended to ensure that files being printed originate from trusted sources, and, whenever possible, are sliced with your own slicer. ### Credits This vulnerability was discovered and responsibly disclosed to OctoPrint by [Jacopo Tediosi](https://github.com/jacopotediosi).

CVE-2025-64187 Affected Octoprint Versions

1 component(s)
Fixed Versions:
1.11.4
Product / Package Ecosystem Affected Versions Fixed Version
octoprint
PyPI
< 1.11.4
1.11.4

References

Frequently Asked Questions

What is CVE-2025-64187?
CVE-2025-64187 is a security vulnerability in Octoprint involving OctoPrint vulnerable to XSS in Action Commands Notification and Prompt under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Octoprint versions are affected?
Affected versions include releases prior to 1.11.4 across affected packages: octoprint.
What version fixes CVE-2025-64187?
Upgrading to 1.11.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is octoprint affected?
Yes, octoprint is affected in releases prior to 1.11.4. Upgrade your dependency to 1.11.4 or later.
What CWE is associated with CVE-2025-64187?
CVE-2025-64187 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (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.).
How can I check PyPI dependencies for CVE-2025-64187?
Run the dependency tree command: 'pip show octoprint'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}