CVE-2026-42570

Source
https://cve.org/CVERecord?id=CVE-2026-42570
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42570.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42570
Aliases
Published
2026-06-09T16:12:26.377Z
Modified
2026-07-08T08:09:33.912488647Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Svelte devalue: DoS via sparse array deserialization
Details

Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From version 5.6.3 to before version 5.8.1, devalue.parse could, due to quirks in some JavaScript engines, be convinced to allocate much more memory than was needed when deserializing sparse arrays, leading to excessive memory consumption. This issue has been patched in version 5.8.1.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42570.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-770"
    ]
}
References

Affected packages

Git / github.com/sveltejs/devalue

Affected ranges

Type
GIT
Repo
https://github.com/sveltejs/devalue
Events
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:svelte:devalue:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "5.6.3"
        },
        {
            "fixed": "5.8.1"
        }
    ]
}

Affected versions

v5.*
v5.6.3
v5.6.4
v5.7.0
v5.7.1
v5.8.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42570.json"