Property
Languagepython
Severitymedium
CWECWE-1236: Improper Neutralization of Formula Elements in a CSV File
OWASPA01:2017 - Injection
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelMedium

Description#

User input is being written directly into a CSV file using Python’s built-in csv module. This allows attackers to inject spreadsheet formulas that may be executed when the CSV is opened in programs like Excel, causing security risks.

Impact#

If exploited, an attacker could craft input that executes malicious scripts or commands when the CSV is opened, potentially stealing data, hijacking sessions, or installing malware on the user’s machine. This puts both users and organizational data at risk.