csv-parse is vulnerable to Prototype Pollution
58
CVE Score
Medium
Prototype Pollution
csv-parse builds record objects from CSV header names when the columns option is enabled. With group_columns_by_name also enabled, a duplicated header such as __proto__ reaches the duplicate-column branch, which assigns an array to obj['__proto__'] and invokes the prototype setter, replacing the parsed record's prototype with input-controlled data. Before the fix this let untrusted CSV header rows replace or pollute the record prototype. The fix uses Object.hasOwn for the duplicate check and Object.defineProperty for assignment so a __proto__ column becomes an ordinary own property.
Upgrade the csv-parse library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you parse untrusted CSV input with both the columns and group_columns_by_name options enabled.
0.0.1 - 7.0.1
Fixed in 7.0.2csv-parse is vulnerable to Prototype Pollution in versions 0.0.1 - 7.0.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.