CVE-2021-25962: CSV injection in shuup
8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61826%
CWE
Published
9/30/2021
Updated
10/23/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
shuup | pip | >= 0.4.2, < 2.11.0 | 2.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized data handling in report exporters. The pre-patch code in writer.py directly used user-supplied data from report_data in both CSV and Excel writers without neutralizing formula-initiating characters. The commit adds remove_unsafe_chars() to strip =, +, and - characters, confirming these functions previously lacked critical sanitization. The injection occurs specifically when these writer classes process and export user-controlled billing address data.