Deserialization of Untrusted Data Affecting preact package, versions >=10.0.0-alpha.0 <10.0.0-beta.1


0.0
medium

Snyk CVSS

    Attack Complexity High
    Availability High

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 ID SNYK-JS-PREACT-174475
  • published 23 Apr 2019
  • disclosed 9 Apr 2019
  • credit Jovi De Croock

Introduced: 9 Apr 2019

CVE NOT AVAILABLE CWE-352 Open this link in a new tab

How to fix?

Upgrade preact to version 10.0.0-beta.1 or higher.

Overview

preact is a fast 3kB alternative to React with the same modern API.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data when inserting a JSON object. This vulnerability occurs when a JSON object is passed to a HTML document's createElement method without validation, allowing insertion of objects with the same attributes.

References