{"id":"CVE-2022-25875","published":"2022-07-12T14:20:17Z","modified":"2024-09-17T04:14:01Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01441,"percentile":0.7386,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SVELTE-2931080","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":14.77},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"svelte","versions":[">= unspecified, < 3.49.0"]}],"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":["<3.49.0"],"patched":["3.49.0"],"from":["GHSA-wv8q-r932-8hc7"],"provenance":"source"}],"summary":{"text":"The flaw is a Cross-site Scripting (XSS) vulnerability in the svelte package before version 3.49.0, arising from improper input sanitization and improper escaping of attributes when objects are rendered during SSR (Server-Side Rendering). An attacker can exploit it by supplying objects that carry a custom toString() function; the attack requires network access and no authentication, but depends on a user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:49Z"},"euvd":{"id":"EUVD-2022-6441","exploited":false,"provenance":"source"}}