Svelte vulnerable to XSS when using objects during server-side rendering
Moderate severity
GitHub Reviewed
Published
Jul 13, 2022
to the GitHub Advisory Database
•
Updated Sep 7, 2023
Description
Published by the National Vulnerability Database
Jul 12, 2022
Published to the GitHub Advisory Database
Jul 13, 2022
Reviewed
Jul 15, 2022
Last updated
Sep 7, 2023
The package svelte before 3.49.0 is vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.
References