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.
https://security.snyk.io/vuln/SNYK-JS-JSON2CSV-14221326
https://github.com/mrodrig/json-2-csv/commit/0fdd0bb6d0273178cd940afc323ccbce19688229
https://github.com/mrodrig/json-2-csv/blob/main/src/json2csv.ts%23L410
https://gist.github.com/whoamins/299745a2d36b482b44e9613b78e40613
Published: 2026-05-28
Updated: 2026-05-29
Base Score: 5.6
Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:P/A:N
Severity: Medium
Base Score: 6.8
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Severity: Medium
Base Score: 7
Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.00025