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://snyk.io/vuln/SNYK-JS-SVELTE-2931080
https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990
https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907
Related Vulnerabilities
CVE-2019-11818 Vulnerability in maven package org.opencms:org.opencms.workplace.tools.accounts
CVE-2020-7779 Vulnerability in npm package djvalidator
CVE-2023-26119 Vulnerability in maven package net.sourceforge.htmlunit:htmlunit
CVE-2020-36380 Vulnerability in npm package aaptjs
CVE-2023-28708 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core