CVE-2025-57318
7.5csvjson · csvjson
A Prototype Pollution vulnerability in the toCsv function of csvjson versions up to 5.1.0 allows attackers to inject properties via a crafted payload, potentially causing a denial of service.
Executive summary
A critical prototype pollution vulnerability in the csvjson library allows unauthenticated attackers to trigger a denial of service condition.
Vulnerability
This vulnerability involves prototype pollution within the toCsv function, where an unauthenticated attacker can inject malicious properties into the Object.prototype by submitting a crafted payload.
Business impact
The ability to manipulate the object prototype can lead to application wide instability and denial of service, potentially disrupting critical business operations. Given the CVSS score of 7.5, this high severity flaw poses a significant risk to availability, especially for applications that rely on this library for data processing.
Remediation
Immediate Action: Since no official patch is currently identified, verify the necessity of the csvjson library and restrict input vectors that reach the toCsv function.
Proactive Monitoring: Monitor server logs for unusual input patterns or unexpected error spikes that may indicate attempts to inject malicious object properties.
Compensating Controls: Implement input validation and sanitization routines to ensure that user provided data cannot influence object prototypes before being processed by the library.
Exploitation status
Public Exploit Available: Yes, a published proof of concept exists, attributed to the security researcher's technical write up referenced in the CVE record.
Analyst recommendation
Organizations utilizing the csvjson library should immediately evaluate their exposure to this prototype pollution vulnerability. Until a vendor patch is released, prioritize the implementation of strict input validation and consider isolating components that utilize the affected toCsv function to prevent service disruption.