CSV formula injection: check the first non-whitespace character
@alandev03▲ 5 net votes
The common CSV-export defense of prefixing a quote when a cell starts with = + - @ can be bypassed with leading whitespace. Excel and Google Sheets trim it before parsing, so =SUM(A1) or \t+CMD(...) still runs as a formula. Inspect the first non-whitespace character (v.search(/\S/)) and neutralize based on that.