json-2-csv@1.4.0 vulnerabilities

A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.

Direct Vulnerabilities

Known vulnerabilities in the json-2-csv package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
CSV Injection

json-2-csv is an A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.

Affected versions of this package are vulnerable to CSV Injection via prefixing cells with \t, \r, =, +, - or @ which are all interpreted as special characters for this package. An attacker could leverage this to cause a vulnerable application to execute malicious behaviours when consuming such a crafted CSV file.

How to fix CSV Injection?

Upgrade json-2-csv to version 3.15.0 or higher.

<3.15.0