CVE-2026-9673: json-2-csv vulnerable to CSV Injection via the preventCsvInjection optio
Versions of the package json-2-csv from 3.15.0 and before 5.5.11 are vulnerable to CSV Injection via the preventCsvInjection option which can be bypassed. An attacker can inject formulas into CSV files, which execute when the files are opened in spreadsheet applications.
Published May 28, 2026 · Updated Jul 1, 2026
Affected packages
json-2-csv
- Ecosystem
- npm
- Affected
- >= 3.15.0, < 5.5.11
- Fixed in
- 5.5.11
- Check
npm ls json-2-csv
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package json-2-csv from 3.15.0 and before 5.5.11 are vulnerable to CSV Injection via the preventCsvInjection option which can be bypassed. An attacker can inject formulas into CSV files, which execute when the files are opened in spreadsheet applications.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-9673
- https://github.com/mrodrig/json-2-csv/commit/0fdd0bb6d0273178cd940afc323ccbce19688229
- https://gist.github.com/whoamins/299745a2d36b482b44e9613b78e40613
- https://github.com/mrodrig/json-2-csv/blob/main/src/json2csv.ts%23L410
- https://security.snyk.io/vuln/SNYK-JS-JSON2CSV-14221326
- https://github.com/advisories/GHSA-g27c-q7cp-mhx6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
