PT-2020-21237
Published
2020-09-02
·
Updated
2020-09-02
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
preact versions prior to 10.0.0-beta.1
Description
The issue is related to insufficient input validation, allowing attackers to inject JavaScript objects as virtual-dom nodes, which may lead to Cross-Site Scripting. This occurs when user input parsed with
JSON.parse() is passed directly into JSX without sanitization.Recommendations
Upgrade to version 10.0.0-beta.1. As a temporary workaround, consider sanitizing user input before passing it into JSX to minimize the risk of exploitation.
Found an issue in the description? Have something to add? Feel free to write us 👾