MEDIUM 6.1 npm

Svelte vulnerable to XSS when using objects during server-side rendering

GHSA-wv8q-r932-8hc7 · CVE-2022-25875 · SNYK-JS-SVELTE-2931080

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes