Skip to content
OpenAdvisories
High · 8.6 CVE-2025-57350 EUVD-2025-31040GHSA-vrw9-g62v-7fmf

CSVTOJSON has a prototype pollution vulnerability

Published Sep 24, 2025 · Updated Sep 24, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling sqlpad 7.5.7-r9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm csvtojson < 2.0.13 2.0.13 GHSA-vrw9-g62v-7fmf

Advisories 1

References