Read the docs
TI-2020-19517 Aliases GHSA-cg48-9hh2-x6mx

HTML Injection in preact

Priority LOW 38CWE-74Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed preact (npm): 10.0.0-beta.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—preact (npm)10.0.0-alpha.0 to before 10.0.0-beta.110.0.0-beta.1Patch availableGHSA-cg48-9hh2-x6mx
  • preact (npm) Vendor— Affected 10.0.0-alpha.0 to before 10.0.0-beta.1 Fixed in 10.0.0-beta.1 Patch available GHSA-cg48-9hh2-x6mx

Remediation

  • Fix · GHSA-cg48-9hh2-x6mx preact (npm) Fixed in 10.0.0-beta.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-cg48-9hh2-x6mx

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences