{"id":"GHSA-wv8q-r932-8hc7","revision":"bfb907edc6c84b44b11ec892181b9848","records":[{"revision":"bfb907edc6c84b44b11ec892181b9848","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wv8q-r932-8hc7","aliases":["CVE-2022-25875","SNYK-JS-SVELTE-2931080"],"title":"Svelte vulnerable to XSS when using objects during server-side rendering","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.","state":0,"publishedAt":"2022-07-13T00:00:41+00:00","modifiedAt":"2026-07-08T06:49:52.1554422+00:00","affected":[{"ecosystem":"npm","name":"svelte","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.49.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-25875","https://github.com/sveltejs/svelte/pull/7530#23issuecomment-1158575990","https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907","https://github.com/sveltejs/svelte","https://snyk.io/vuln/SNYK-JS-SVELTE-2931080"],"sourceUrl":"https://github.com/advisories/GHSA-wv8q-r932-8hc7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wv8q-r932-8hc7","identifiers":["GHSA-wv8q-r932-8hc7","CVE-2022-25875","SNYK-JS-SVELTE-2931080"]},"retained":false,"historicalAffected":[]}],"coverage":[]}