Security mailing lists by PureSourceCode

GHSA-cg48-9hh2-x6mx

MEDIUM

HTML Injection in preact

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.

Recommendation

Upgrade to version 10.0.0-beta.1.

Published
2 Sep 2020
Last modified
27 Sep 2021
Weakness
CWE-74
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm preact >= 10.0.0-alpha.0, < 10.0.0-beta.1 10.0.0-beta.1

References

History

  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Sep 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.