{"cve":"CVE-2022-25875","nvd":{"published":"2022-07-12T19:15:08.330","modified":"2026-06-17T04:34:25.647","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"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","https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907","https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990"],"products":["svelte:svelte"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-25875","score":0.01441,"percentile":0.73217,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wv8q-r932-8hc7","url":"https://osv.dev/vulnerability/GHSA-wv8q-r932-8hc7","summary":"Svelte vulnerable to XSS when using objects during server-side rendering","modified":"2026-07-08T06:49:52.155442210Z","packages":[{"ecosystem":"npm","name":"svelte","purl":"pkg:npm/svelte","ranges":["<3.49.0"],"fixed":["3.49.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}