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

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

Introduced: 26 Nov 2021

CVE NOT AVAILABLE CWE-1236 Open this link 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
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None