What should a business check for formula injection in CSV exports?
Understand how untrusted data can become a spreadsheet formula and what to ask your software provider about export safety.
Identify where exported data comes from
A customer portal or enquiry system may export names, messages or other values supplied by outside users. When an employee opens that CSV in a spreadsheet, some values can be interpreted as formulas rather than plain text. The risk depends on the application and how the file is used.
Map the affected workflows
Ask which exports contain untrusted data, who opens them and whether they are also imported into other systems. For example, a customer-supplied delivery note in a spreadsheet report needs different handling from a machine-readable integration that must preserve exact values.
Agree a suitable protection
Ask the software provider how it encodes fields and prevents spreadsheet software from interpreting untrusted values as formulas. OWASP explains that characters, separators and quoting all matter, and that no single CSV sanitisation strategy is safe for every spreadsheet and downstream consumer.
Test the actual spreadsheet journey
Use authorised test data in a controlled environment and check the spreadsheet applications and import methods staff actually use. Include saving and reopening the file: OWASP notes that some escaping methods can fail after this step. Test machine imports separately so security changes do not silently corrupt business data.
Review ownership and changes
Document who maintains each export, how a suspected issue is reported and which users rely on it. Recheck protection when a field, export format or spreadsheet workflow changes. Do not treat a trusted-looking export as proof that every value inside it is trustworthy.