Advisory

GHSA-vrw9-g62v-7fmf

Also known as: 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-24 18:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

csvtojson

npm · All systems

Affected

  • introduced 0, fixed 2.0.13 (semver)

Fixed versions

2.0.13

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences