Description (CNA)
node-csv is a full-featured CSV parser with a simple API that is tested against large datasets. Prior to 7.0.2, csv-parse with the columns and group_columns_by_name options enabled treats a duplicate __proto__ header as an existing property in packages/csv-parse/lib/api/index.js, assigns an attacker-controlled array through obj['__proto__'], and replaces the parsed record object's prototype. A malicious CSV header can therefore inject inherited array values into the returned record, hide those inherited values from JSON serialization, and affect property enumeration and type or shape checks in applications that process the record. This issue is fixed in version 7.0.2.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| adaltas / node-csv | affected < 7.0.2 |
CWE
CWE-1321
References
- https://github.com/adaltas/node-csv/security/advisories/GHSA-8cw4-87c7-c6xx
- https://github.com/adaltas/node-csv/issues/496
- https://github.com/adaltas/node-csv/pull/497
- https://github.com/adaltas/node-csv/commit/eb4d1484589c976dcb977db8dd0b90e015a6f66e
ADP enrichment
No English description supplied.