Improper Handling of Highly Compressed Data (Data Amplification) Affecting devalue package, versions <5.9.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-DEVALUE-20416738
  • published4 Oct 2026
  • disclosed1 Oct 2026
  • creditUnknown

Introduced: 1 Oct 2026

New CVE NOT AVAILABLE CWE-409  (opens in a new tab)

How to fix?

Upgrade devalue to version 5.9.3 or higher.

Overview

devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the uneval function when serializing a value containing many repeated long strings or bigint primitives. Each repeated primitive is re-stringified on every reference rather than being deduplicated, causing the output size to grow quadratically with the number of repetitions. An attacker who can supply input to a uneval call can trigger excessive CPU and memory consumption, crashing the process.

CVSS Base Scores

version 4.0
version 3.1