Intel

AIKIDO-2025-10458

csv-stringify is vulnerable to Improper Neutralization of Formula Elements in a CSV File

Improper Neutralization of Formula Elements in a CSV File Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 15, 2025

80

High Risk

This Affects:

JScsv-stringify
6.1.0 - 6.5.2
Fixed in 6.6.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to CSV injection due to insufficient escaping logic in the escape_formulas parameter. This feature attempts to neutralize formula-triggering, but fails to cover all dangerous characters or multi-byte Unicode sequences. An attacker could exploit this by crafting payloads starting with unhandled characters (such as line feeds or specially formatted Unicode), which, when imported into spreadsheet applications, execute arbitrary commands, exfiltrate data, or manipulate local files via crafted formulas like =cmd|'/C calc'!A0 hidden in exported CSV cells.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

csv-stringify is vulnerable to Improper Neutralization of Formula Elements in a CSV File in versions 6.1.0 - 6.5.2.

How to fix this

Upgrade the csv-stringify library to the patch version.