CVE-2025-57350
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
csvtojsonnpm | < 2.0.13 | 2.0.13 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/sqlpadpkg:apk/chainguard/sqlpad-compatpkg:apk/wolfi/sqlpadpkg:apk/wolfi/sqlpad-compatpkg:npm/csvtojson
< 7.5.7-r9+ 4 more
- (no CPE)range: < 7.5.7-r9
- (no CPE)range: < 7.5.7-r2
- (no CPE)range: < 7.5.7-r9
- (no CPE)range: < 7.5.7-r2
- (no CPE)range: < 2.0.13
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-vrw9-g62v-7fmfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-57350ghsaADVISORY
- github.com/Keyang/node-csvtojson/commit/4caeebd13b67be63282a7bbed3ca0cf9813f4bfcghsaWEB
- github.com/Keyang/node-csvtojson/issues/498ghsaWEB
- github.com/Keyang/node-csvtojson/issues/502ghsaWEB
- github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57350ghsaWEB
- security.snyk.io/vuln/SNYK-JS-CSVTOJSON-13109616ghsaWEB
News mentions
0No linked articles in our index yet.