Description
The package svelte before 3.49.0 are 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.
Remediation
References
https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907
https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990
https://snyk.io/vuln/SNYK-JS-SVELTE-2931080
Related Vulnerabilities
CVE-2019-14862 Vulnerability in maven package org.webjars:knockout
CVE-2010-3863 Vulnerability in maven package org.apache.shiro:shiro-web
CVE-2021-20293 Vulnerability in maven package org.jboss.resteasy:resteasy-core
CVE-2023-47326 Vulnerability in maven package org.silverpeas.core:silverpeas-core
CVE-2022-4350 Vulnerability in maven package net.mingsoft:ms-mcms