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

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High