CSV Injection Affecting json-2-csv package, versions <3.15.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-JS-JSON2CSV-1932013
  • published9 Dec 2021
  • disclosed26 Nov 2021
  • creditUnknown

Introduced: 26 Nov 2021

CVE NOT AVAILABLE CWE-1236  (opens in a new tab)

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.

CVSS Scores

version 3.1