{"id":"CVE-2022-25875","aliases":["CLSA-2026-1776126838","CLSA-2026-1776213244","CLSA-2026-1776213252","EUVD-2022-6441","GHSA-wv8q-r932-8hc7","SNYK-JS-SVELTE-2931080"],"status":"published","title":"Cross-site Scripting (XSS)","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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01441,"percentile":0.73398,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-07-12T14:20:17Z","modified":"2026-10-28T02:31:01Z","fixes":[{"ecosystem":"npm","package":"svelte","fixed_in":["3.49.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.49.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.16.1-tuxcare.0"},{"fixed":"2.16.1-tuxcare.1"}]}],"versions":["2.16.1"],"bundled":6},{"source":"osv","ecosystem":"TuxCare:npm","package":"svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.64.1-tuxcare.0"},{"fixed":"1.64.1-tuxcare.1"}]}],"versions":["1.64.1"],"bundled":6},{"source":"osv","ecosystem":"TuxCare:npm","package":"svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.0-tuxcare.0"},{"fixed":"0.3.0-tuxcare.1"}]}],"versions":["0.3.0"],"bundled":6},{"source":"osv","ecosystem":"npm","package":"svelte","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.49.0"}]}]}],"products":[{"vendor":"svelte","product":"svelte"},{"vendor":"sveltejs","product":"svelte"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SVELTE-2931080","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990","tags":["x_refsource_MISC","x_transferred","Broken Link","fix"]},{"url":"https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25875","tags":["advisory"]},{"url":"https://github.com/sveltejs/svelte/pull/7530#23issuecomment-1158575990","tags":["web"]},{"url":"https://github.com/advisories/GHSA-wv8q-r932-8hc7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25875.json","tags":["advisory"]},{"url":"https://github.com/sveltejs/svelte","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25875","title":"Cross-site Scripting (XSS)","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.","status":"published","published":"2022-07-12T14:20:17.95Z","modified":"2024-09-17T04:14:01.708Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2022-6441","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.","status":"published","published":"2022-07-12T14:20:17Z","modified":"2024-09-17T04:14:01Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-03T00:28:24.821388Z"}],"ghsa":[{"id":"GHSA-wv8q-r932-8hc7","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.","status":"published","published":"2022-07-13T00:00:41Z","modified":"2023-09-07T00:13:26Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:02.632342Z"}],"nvd":[{"id":"CVE-2022-25875","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.","status":"published","published":"2022-07-12T19:15:08.33Z","modified":"2026-06-17T04:34:25.647Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:23.322724Z"}],"osv":[{"id":"CVE-2022-25875","title":"Cross-site Scripting (XSS)","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.","status":"published","published":"2022-07-12T14:20:17.95Z","modified":"2026-10-28T02:31:01.128334057Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-wv8q-r932-8hc7","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.","status":"published","published":"2022-07-13T00:00:41Z","modified":"2026-07-08T06:49:52.15544221Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"CLSA-2026-1776126838","title":"TuxCare security update for svelte (6 CVEs)","description":"TuxCare rebuilt svelte to address 6 CVEs. Fixed in 2.16.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:25Z","modified":"2026-10-15T09:47:49.780187973Z","updated_at":"2026-11-02T15:43:44.009773Z"},{"id":"CLSA-2026-1776213244","title":"TuxCare security update for svelte (6 CVEs)","description":"TuxCare rebuilt svelte to address 6 CVEs. Fixed in 1.64.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:25Z","modified":"2026-10-15T09:47:49.789990366Z","updated_at":"2026-11-02T15:43:44.009773Z"},{"id":"CLSA-2026-1776213252","title":"TuxCare security update for svelte (6 CVEs)","description":"TuxCare rebuilt svelte to address 6 CVEs. Fixed in 0.3.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:25Z","modified":"2026-10-15T09:47:49.842946726Z","updated_at":"2026-11-02T15:43:44.009773Z"}]}}
