OctoprintApplication

CVE-2024-49377

MEDIUM · 6.1 CVSS v3.1 Published 2024-11-05
Fix available
A fix is available. Upgrade to 1.10.3 or later.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.10.2 contain reflected XSS vulnerabilities in the login dialog and the standalone application key confirmation dialog. An attacker who successfully talked a victim into clicking on a specially crafted login link, or a malicious app running on a victim's computer triggering the application key workflow with specially crafted parameters and then redirecting the victim to the related standalone confirmation dialog could use this to retrieve or modify sensitive configuration settings, interrupt prints or otherwise interact with the OctoPrint instance in a malicious way. The above mentioned specific vulnerabilities of the login dialog and the standalone application key confirmation dialog have been patched in the bugfix release 1.10.3 by individual escaping of the detected locations. A global change throughout all of OctoPrint's templating system with the upcoming 1.11.0 release will handle this further, switching to globally enforced automatic escaping and thus reducing the attack surface in general. The latter will also improve the security of third party plugins. During a transition period, third party plugins will be able to opt into the automatic escaping. With OctoPrint 1.13.0, automatic escaping will be switched over to be enforced even for third party plugins, unless they explicitly opt-out.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

OctoPrint versions up to 1.10.2 contain reflected XSS vulnerabilities in the login dialog and standalone application key confirmation dialog. Attackers craft malicious links or trigger application key workflows with specially crafted parameters to inject scripts that can access/modify sensitive configuration, interrupt prints, or interact maliciously with the OctoPrint instance.

MitigationUpgrade to OctoPrint 1.10.3 or later which patches the reflected XSS via individual escaping of detected locations; the upcoming 1.11.0 release will implement globally enforced automatic escaping.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
OctoprintApplication
Affected:< 1.10.3

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine installed OctoPrint version
    Access the OctoPrint web interface and navigate to Settings > About, or check the version via the API at /api/version, or inspect the bundled version.py file in the installation directory
    Affected if The displayed version is lower than 1.10.3 (e.g., 1.10.2, 1.10.1, 1.10.0, or any 1.9.x release)
  2. Verify application key feature accessibility
    Check if the Application Keys API endpoint is reachable at /api/plugin/appkeys or navigate to Settings > API to confirm application keys are enabled
    Affected if Application keys are enabled and the version is below 1.10.3, making the confirmation dialog vulnerable to reflected XSS
  3. Inspect web server logs for suspicious request parameters
    Review OctoPrint's access logs (typically in the logs directory under octoprint.log) for requests to login or application key endpoints containing unusual script-related characters such as <script>, javascript:, or encoded variations in URL parameters
    Affected if Such malicious parameter patterns appear in logs, indicating potential exploitation attempts
  4. Check for unauthorized configuration changes
    Examine Settings > Appearance > Manager and Settings > API > Application Keys for any unexpected modifications, new API keys, or unfamiliar plugin configurations that could have been added via XSS
    Affected if Unexpected API keys, modified settings, or unfamiliar plugins are present that were not intentionally created by the administrator

You are affected if your OctoPrint installation is any version below 1.10.3 and the application keys feature is accessible or the login dialog can be reached via crafted URLs.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.10.3 or later
Fixed in 1.10.3
Interim mitigation

Upgrade to OctoPrint 1.10.3 or later which patches the reflected XSS via individual escaping of detected locations; the upcoming 1.11.0 release will implement globally enforced automatic escaping.

Recommended fix High confidence

1.10.3

  1. 1. Back up your OctoPrint configuration and data
  2. 2. Access your OctoPrint server via SSH or terminal
  3. 3. Stop the OctoPrint service
  4. 4. Upgrade OctoPrint to version 1.10.3 or later using your installation method (e.g., pip install --upgrade OctoPrint, or via your package manager)
  5. 5. Restart the OctoPrint service
  6. 6. Verify the upgrade was successful by checking the version in the UI (OctoPrint > Settings > About)

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Octoprint Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing3.0 h
  • Review / QA2.0 h
14.0 hours of engineering $2,490
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-49377 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-49377 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data