A formula injection flaw occurred when data fields were exported without proper escaping, allowing spreadsheet formulas to execute when files are opened. This impacts data integrity and can lead to unintended operations.