CVE-2025-57350: Csvtojson CSVTOJSON Has A Prototype Pollution Vulnerability

MODERATE
Advisory Identifier: GHSA-vrw9-g62v-7fmf
CWE-1321
Published
Advisory Summary

CVE-2025-57350 is a MODERATE csvtojson has a prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Csvtojson libraries in the npm ecosystem. The issue involves csvtojson has a prototype pollution vulnerability. Remediation is available by upgrading affected packages to version 2.0.13.

CVE-2025-57350 at a Glance

CVE Identifier CVE-2025-57350
GHSA Identifier GHSA-vrw9-g62v-7fmf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Csvtojson
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-57350

To remediate this vulnerability, upgrade all affected Csvtojson dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

csvtojson fixed: 2.0.13
npm install csvtojson@2.0.13
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls csvtojson

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-57350, inspect your project dependencies using npm:

npm ls csvtojson

Analyze the terminal output to locate any version of Csvtojson in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.13), your application is affected.

Note: The npm ls csvtojson command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Csvtojson, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-57350 Affected Csvtojson Versions

1 component(s)
Fixed Versions:
2.0.13
Product / Package Ecosystem Affected Versions Fixed Version
csvtojson
npm
< 2.0.13
2.0.13

References

Frequently Asked Questions

What is CVE-2025-57350?
CVE-2025-57350 is a security vulnerability in Csvtojson involving CSVTOJSON has a prototype pollution vulnerability under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Csvtojson versions are affected?
Affected versions include releases prior to 2.0.13 across affected packages: csvtojson.
What version fixes CVE-2025-57350?
Upgrading to 2.0.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is csvtojson affected?
Yes, csvtojson is affected in releases prior to 2.0.13. Upgrade your dependency to 2.0.13 or later.
What CWE is associated with CVE-2025-57350?
CVE-2025-57350 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2025-57350?
Run the dependency tree command: 'npm ls csvtojson'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vrw9-g62v-7fmf",
  "modified" : "2026-01-27T21:06:02Z",
  "published" : "2025-09-24T18:30:31Z",
  "aliases" : [ "CVE-2025-57350" ],
  "summary" : "CSVTOJSON has a prototype pollution vulnerability",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "csvtojson"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57350"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Keyang/node-csvtojson/issues/498"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Keyang/node-csvtojson/issues/502"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Keyang/node-csvtojson/commit/4caeebd13b67be63282a7bbed3ca0cf9813f4bfc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Keyang/node-csvtojson"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57350"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-CSVTOJSON-13109616"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-24T20:10:59Z",
    "nvd_published_at" : "2025-09-24T18:15:41Z"
  }
}