preact-render-to-string@2.0.0 vulnerabilities

Render JSX to an HTML string, with support for Preact components.

Direct Vulnerabilities

Known vulnerabilities in the preact-render-to-string package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

preact-render-to-string is a library that renders JSX to an HTML string, with support for Preact components.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when spread attributes in the ssr files are unsanitized and can therefore be attack vectors for untrusted user input.

How to fix Cross-site Scripting (XSS)?

Upgrade preact-render-to-string to version 3.7.2 or higher.

<3.7.2