Intel

AIKIDO-2026-149515

csv-parse is vulnerable to Prototype Pollution

CVE-2026-85063Published Aug 4, 2026
August 4, 2026

58

CVE Score

Medium

Prototype Pollution

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the csv-parse library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 7.0.1

Fixed in 7.0.2

Background info

csv-parse is vulnerable to Prototype Pollution in versions 0.0.1 - 7.0.1.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea