Improper Validation of Specified Type of Input Affecting devalue package, versions <5.6.4


Severity

Recommended
0.0
medium
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-15479704
  • published12 Mar 2026
  • disclosed12 Mar 2026
  • creditUnknown

Introduced: 12 Mar 2026

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

How to fix?

Upgrade devalue to version 5.6.4 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 Validation of Specified Type of Input in the hydrate() function that can accept __proto__ keys emitted from devalue.parse() or devalue.unflatten() functions. An attacker can manipulate object properties by supplying input that creates objects with a __proto__ own property, which may lead to prototype pollution in downstream code when such objects are merged or assigned.

CVSS Base Scores

version 4.0
version 3.1