Jinja2 Templates are vulnerable to XSS attacks due to their configuration in OctoPrint
CVE-2024-49377Published 5 Nov 2024, 18:20 UTC
Real-world risk
0.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| OctoPrintNiche | < 1.10.3 | 1.10.3 |
What to do
Update to a fixed version: 1.10.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 23), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.280
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.28 × threat 0.850.714
- Rounded to one decimal between 0.1 and 100.7
Exploitation and evidence timeline
- 5 Nov 2024 Published
- 3 Dec 2026 Risk 0.7 (cvss fallback)
Weakness
CWE-79, CWE-80