# devalue (npm)

Gets the job done when JSON.stringify can't

- Latest: 6.0.4 (2026-11-24)
- Licence: MIT
- Downloads: 125500690 last month
- Advisories on the latest version: 0

- CVE-2026-123561 MODERATE: devalue: Malformed null-prototype object keys bypass __proto__ rejection via property-key coercion Fixed in 5.9.3.
- CVE-2026-123566 MODERATE: devalue: Residual sparse-array CPU amplification in uneval Fixed in 5.9.3.
- CVE-2026-92708 HIGH: devalue: `stringify`/`uneval` serialize shared memory Fixed in 5.9.3.
- CVE-2026-123565 HIGH: devalue: Repeated primitive strings cause quadratic expansion in uneval Fixed in 5.9.3.
- CVE-2026-123563 HIGH: devalue: Custom ArrayBuffer revivers can bypass typed-array allocation validation Fixed in 5.9.3.
- CVE-2026-123564 LOW: devalue: Sparse arrays emitted by uneval cause eager allocation when evaluated Fixed in 5.9.3.
- CVE-2026-123562 HIGH: devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise Fixed in 5.9.3.
- CVE-2026-81176 MODERATE: Svelte devalue: DoS via malformed input Fixed in 5.9.2.
- CVE-2026-42570 HIGH: Svelte devalue: DoS via sparse array deserialization Fixed in 5.8.1.
- CVE-2026-30226 MODERATE: devalue has prototype pollution in devalue.parse and devalue.unflatten Fixed in 5.6.4.
- CVE-2026-123567 LOW: Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties Fixed in 5.6.4.
- CVE-2026-123569 LOW: devalue affected by CPU and memory amplification from sparse arrays Fixed in 5.6.3.
- CVE-2026-123568 LOW: devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed Fixed in 5.6.3.
- CVE-2026-22775 HIGH: devalue vulnerable to denial of service due to memory/CPU exhaustion in devalue.parse Fixed in 5.6.2.
- CVE-2026-22774 HIGH: Devalue is vulnerable to denial of service due to memory exhaustion in devalue.parse Fixed in 5.6.2.
- CVE-2025-57820 HIGH: devalue prototype pollution vulnerability Fixed in 5.3.2.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
