Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. csvtojson
  4. ›
  5. CVE-2025-57350

CVE-2025-57350: CSVTOJSON has a prototype pollution vulnerability

September 24, 2025 (updated January 27, 2026)

The csvtojson package, a tool for converting CSV data to JSON with customizable parsing capabilities, contains a prototype pollution vulnerability in versions prior to 2.0.10. This issue arises due to insufficient sanitization of nested header names during the parsing process in the parser_jsonarray component. When processing CSV input containing specially crafted header fields that reference prototype chains (e.g., using proto syntax), the application may unintentionally modify properties of the base Object prototype. This vulnerability can lead to denial of service conditions or unexpected behavior in applications relying on unmodified prototype chains, particularly when untrusted CSV data is processed. The flaw does not require user interaction beyond providing a maliciously constructed CSV file.

References

  • github.com/Keyang/node-csvtojson
  • github.com/Keyang/node-csvtojson/commit/4caeebd13b67be63282a7bbed3ca0cf9813f4bfc
  • github.com/Keyang/node-csvtojson/issues/498
  • github.com/Keyang/node-csvtojson/issues/502
  • github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57350
  • github.com/advisories/GHSA-vrw9-g62v-7fmf
  • nvd.nist.gov/vuln/detail/CVE-2025-57350
  • security.snyk.io/vuln/SNYK-JS-CSVTOJSON-13109616

Code Behaviors & Features

Detect and mitigate CVE-2025-57350 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.13

Fixed versions

  • 2.0.13

Solution

Upgrade to version 2.0.13 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/csvtojson/CVE-2025-57350.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:43 +0000.