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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made 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 Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PREACT-174475
  • published23 Apr 2019
  • disclosed9 Apr 2019
  • creditJovi De Croock

Introduced: 9 Apr 2019

CVE NOT AVAILABLE CWE-352  (opens 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

CVSS Scores

version 3.1