Versions of preact 10.x on prerelease tags alpha and beta prior to 10.0.0-beta.1 are vulnerable to HTML Injection. Due to insufficient input validation the package allows attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This requires user input parsed with JSON.parse() to be passed directly into JSX without sanitization.
Upgrade to version 10.0.0-beta.1.
{
"github_reviewed": true,
"severity": "MODERATE",
"cwe_ids": [
"CWE-74"
],
"nvd_published_at": null,
"github_reviewed_at": "2020-08-31T18:37:35Z"
}