Skip to content

fix: sanitize CSV formula injection in export_csv (CWE-1236) - #52

Merged
artemo-brd merged 3 commits into
mainfrom
fix/csv-formula-injection
Aug 12, 2026
Merged

fix: sanitize CSV formula injection in export_csv (CWE-1236)#52
artemo-brd merged 3 commits into
mainfrom
fix/csv-formula-injection

Conversation

@artemo-brd

Copy link
Copy Markdown
Collaborator

Escapes leading '=', '+', '-', '@', tab, and CR in export_csv() cells to prevent formula injection when exported CSVs are opened in Excel/Sheets/LibreOffice. New sanitize param defaults to True; added tests.

@artemo-brd artemo-brd changed the title Sanitize CSV formula injection in export_csv (CWE-1236) fix: sanitize CSV formula injection in export_csv (CWE-1236) Aug 12, 2026
@artemo-brd
artemo-brd merged commit 21e6a7b into main Aug 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant