CVE-2021-32561: OctoPrint API Error Messages vulnerable to XSS
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53429%
CWE
Published
5/24/2022
Updated
10/8/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| OctoPrint | pip | < 1.6.0 | 1.6.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from API endpoints returning error messages that include unescaped user input parameters. Key evidence includes:
- The patch note explicitly states 'Don't return input params in error messages on the API'
- The CVE description specifies XSS via parameter values in error messages
- The blog post demonstrates XSS via manipulated file paths in /api/files endpoint errors
- The vulnerability type (CWE-79) confirms improper input neutralization in web outputs While exact function names aren't provided in available resources, the pattern matches API error handling functions that incorporate user input into error responses without proper sanitization.