CVE-2026-22774 devalue vulnerable to denial of service due to memory exhaustion in devalue.parse

High 7.5 Published Updated

Attackers can cause denial of service via memory exhaustion in devalue.parse when processing untrusted input, affecting applications using this JavaScript library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-22774?

CVE-2026-22774 is a high-severity denial of service vulnerability in sveltejs devalue, published on 15 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From 5.3.0 to 5.6.1, certain inputs can cause devalue.parse to consume excessive CPU time and/or memory, potentially leading to denial of service in systems that parse input from untrusted sources. This affects applications using devalue.parse on externally-supplied data. The root cause is the typed array hydration expecting an ArrayBuffer as input, but not checking the assumption before creating the typed array. This vulnerability is fixed in 5.6.2.

Weakness: CWE-405

Which versions are affected by CVE-2026-22774?

2 open source packages ship an affected version, including devalue. It affects 1 product.

PackageAffectedFixed in
devalue npmFrom 5.3.05.6.2
devalue npmFrom 5.3.05.6.2

Products include Svelte Devalue.

How do I fix CVE-2026-22774?

Upgrade devalue to 5.6.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-22774 being exploited?

There is no known exploitation of CVE-2026-22774 in the wild and no public exploit code.

Sources

Also known as GHSA-vw5p-8cq8-m7mv.

Is CVE-2026-22774 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free