Description
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.
Published: 2026-05-28
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Vulnerabilities in the popular Node.js library json-2-csv allow a malicious actor to insert spreadsheet formulas into generated CSV content. When the preventCsvInjection option is bypassed, attackers can embed strings that begin with characters such as ‘=’, ‘+’, ‘-’, or a tab, causing spreadsheet applications to interpret them as executable formulas. The injection can trigger arbitrary function calls or data extraction when the CSV file is opened, compromising the confidentiality of the data presented to the user. This weakness is classified under CWE-1236, denoting security weakness in interface validation.

Affected Systems

Any project that uses the json-2-csv NPM package with version identifiers from 3.15.0 up to and including 5.5.11 is affected. This includes any application, script, or service that relies on this library to export data to CSV. Projects that have upgraded beyond 5.5.11 are out of scope.

Risk and Exploitability

The CVSS score of 7.0 labels this vulnerability as high severity. No EPSS score is currently available, and the issue is not cited in the CISA KEV catalog, indicating it is not a known mass‑exploited flaw at this time. Exploitation requires that an adversary can influence the data fed to json-2-csv, otherwise the flag remains unchanged. The main threat surface exists when an end‑user opens the produced CSV in a spreadsheet program that evaluates formulas. Appropriate controls on data provenance and strict input sanitization can mitigate the risk; otherwise a lateral or privilege‑escalation vector may be possible if the CSV is handled within a trusted environment.

Generated by OpenCVE AI on May 28, 2026 at 07:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade json-2-csv to version 5.5.11 or later
  • Ensure the preventCsvInjection flag is enabled and not overridden by downstream code
  • Sanitize or escape data before passing to json-2-csv to strip leading equals, plus, minus or tab characters

Generated by OpenCVE AI on May 28, 2026 at 07:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 30 May 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Mrodrig
Mrodrig json-2-csv
Vendors & Products Mrodrig
Mrodrig json-2-csv

Thu, 28 May 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 28 May 2026 07:45:00 +0000

Type Values Removed Values Added
Title CSV Injection Vulnerability in json-2-csv Package via PreventCsvInjection Option

Thu, 28 May 2026 06:00:00 +0000

Type Values Removed Values Added
Description 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.
Weaknesses CWE-1236
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P'}

cvssV4_0

{'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/E:P'}


Subscriptions

Mrodrig Json-2-csv
cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-05-28T13:10:59.627Z

Reserved: 2026-05-27T05:35:32.761Z

Link: CVE-2026-9673

cve-icon Vulnrichment

Updated: 2026-05-28T13:10:40.695Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-28T06:16:29.147

Modified: 2026-05-29T02:47:03.023

Link: CVE-2026-9673

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-30T21:19:21Z

Weaknesses