devalue

Gets the job done when JSON.stringify can't

6.0.4Latest, 24 Nov 2026
126MDownloads, last month
0Advisories on the latest
16Advisories, all versions
MITLicence
2.8KStars

Known advisories

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

In the news

On Hacker News

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