CSV Injection Affecting json-2-csv package, versions <3.15.0
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-JSON2CSV-1932013
- published 9 Dec 2021
- disclosed 26 Nov 2021
- credit Unknown
How to fix?
Upgrade json-2-csv
to version 3.15.0 or higher.
Overview
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.
References
CVSS Scores
version 3.1