Preparing for system design interviews?  Try bugzed.com →

Defused CSV

JSON →
library 3.0.0 ·python
verified Jun 28, 2026

defusedcsv is a Python library (version 3.0.0) that acts as a drop-in replacement for the standard library's `csv` module, specifically designed to mitigate CSV injection attacks. It works by sanitizing output, prepending an apostrophe to cells that start with potentially malicious characters like `=`, `+`, `-`, `@`, `|`, or `%`, and escaping `|` characters within these cells. This prevents spreadsheet software (like MS Excel or LibreOffice) from interpreting the cell content as a formula. The library's release cadence appears to be infrequent, with the latest version published to PyPI on September 2, 2025.

total hits 21
actors 6 distinct systems
last hit 5d ago AhrefsBot
GPTBot
4
Amazonbot
4
ByteDance
2
Script
1
Sogou
1
Humans
6

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany