CVE-2025-57350 Details
Description
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.
A prototype pollution vulnerability has been identified in the csvtojson package, which is used to convert CSV data to JSON with customizable parsing options. This vulnerability exists in versions prior to 2.0.10 and arises from inadequate sanitization of nested header names in the 'parser_jsonarray' component during the CSV parsing process. When the package processes CSV files with specially crafted headers that reference prototype chains, such as those using the '__proto__' syntax, it can unintentionally alter properties of the base Object prototype. This manipulation can lead to denial-of-service conditions, such as application crashes or hangs, and cause unexpected behavior in applications that depend on unmodified prototype chains. The vulnerability can be exploited by supplying a maliciously crafted CSV file, without requiring any additional user interaction.
Users can upgrade to csvtojson version 2.0.10 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Keyang/node-csvtojson/issues/498 | [email protected] | Issue TrackingVendor Advisory |
| https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57350 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| keyangxiang csvtojson | < 2.0.10 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | Initial Analysis | [email protected] |
| Sep 24, 2025 | CVE Modified | CISA-ADP |
| Sep 24, 2025 | New CVE Received | [email protected] |