HTML Injection in preact
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | preact (npm) | 10.0.0-alpha.0 to before 10.0.0-beta.1 | 10.0.0-beta.1 | Patch available | GHSA-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
- 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