CVE-2025-57318
High · 7.5csvjson vulnerable to prototype injection
CVSS
7.5
EPSS
0.4%
Published
Sep 24, 2025
CISA due date
—
Cloudanix analysis
A flaw in a common data conversion library lets attackers send specially crafted data that can crash the application.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Prototype pollution in the toCsv function allows an attacker to inject arbitrary properties onto Object.prototype through a crafted payload, which can corrupt object behavior and lead to denial of service as the minimum impact.
Why it matters to the business
Applications relying on the library may experience unexpected crashes or service unavailability when processing untrusted input, increasing operational downtime and support costs until mitigated.
How an attack unfolds
An attacker identifies calls to the toCsv function that accept external data, crafts a malicious payload containing prototype-polluting keys, and supplies it to trigger property injection on the global prototype, resulting in DoS.
How to fix it
Upgrade csvjson to a version beyond 5.1.0 once a fix is released; in the interim, sanitize or validate all inputs passed to toCsv and consider replacing the library with a maintained alternative that performs safe serialization.
How to confirm the fix worked
Review package manifests and lockfiles for csvjson versions at or below 5.1.0; test the toCsv function with known prototype-pollution payloads in a controlled environment to confirm whether prototype properties are altered.
Typical attack path
- Locate application code paths that invoke the toCsv function with user-controlled input
- Craft a payload containing keys such as '__proto__' or 'constructor.prototype' with malicious values
- Submit the payload through the affected input channel
- Observe side effects that corrupt object instances and trigger application errors or crashes
How to detect it
Search application logs for toCsv invocations that include suspicious keys such as __proto__, examine error logs for prototype-related object corruption, and review any crash reports tied to object property access after CSV conversion.
What your security team should do
- Inventory all projects depending on csvjson and prioritize upgrades
- Implement input sanitization around toCsv calls as a temporary control
- Monitor vulnerability feeds for a published fix and schedule patching within standard change windows
The record
A Prototype Pollution vulnerability in the toCsv function of csvjson versions thru 5.1.0 allows attackers to inject properties on Object.prototype via supplying a crafted payload, causing denial of service (DoS) as the minimum consequence.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | csvjson | 0 | No fix |
Related vulnerabilities
- CVE-2026-63402 i18next is an internationalization framework for JavaScript. CWE-1321
- CVE-2026-119569 Parse Server before 8.6.108 and 9.0.0 before 9.10.5-alpha.9 contains a prototype… CWE-1321
- CVE-2026-118777 Forge (also called node-forge) is a native implementation of Transport Layer Security in… CWE-1321
- CVE-2026-118649 n8n before 2.43.5 and 2.44.x before 2.44.1 accepts a client-supplied workflow ID and… CWE-1321
- CVE-2026-118678 n8n before 2.41.4 and 2.42.x before 2.42.1 contains a prototype pollution vulnerability… CWE-1321
- CVE-2026-118249 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321
- CVE-2026-118250 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321
- CVE-2026-118248 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321