{"id":"CVE-2022-25875","aliases":["GHSA-wv8q-r932-8hc7","SNYK-JS-SVELTE-2931080"],"url":"https://o3.security/vulnerability/CVE-2022-25875","summary":"Cross-site Scripting (XSS)","details":"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.","published":"2022-07-12T14:20:17.950Z","modified":"2026-08-12T03:51:46.773855617Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"svelte","fixedVersion":"3.49.0"}],"fix":{"url":"https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907","label":"sveltejs/svelte@f8605d6"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25875.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25875"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-SVELTE-2931080"},{"type":"FIX","url":"https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907"},{"type":"FIX","url":"https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:46.773855617Z"}}