CVE-2025-57350 CSVTOJSON has a prototype pollution vulnerability
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| keyangxiang csvtojson | < 2.0.10 | 2.0.10 | Fixed |
| npm csvtojson(npm) | < 2.0.13 | 2.0.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm csvtojson(npm) | < 2.0.13 | 2.0.13 |
| keyangxiang csvtojson | < 2.0.10 | 2.0.10 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking vendor-advisory
- github.com exploit third-party-advisory
- github.com
- github.com patch
- security.snyk.io
- github.com
- github.com product