Security mailing lists by PureSourceCode

CVE-2022-25875

MEDIUM 6.1CVSS 3.1

Svelte vulnerable to XSS when using objects during server-side rendering

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
12 Jul 2022
Last modified
8 Jul 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-wv8q-r932-8hc7SNYK-JS-SVELTE-2931080
Sources
NVDJSONOSV GHSA-wv8q-r932-8hc7JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD svelte svelte
cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*
< 3.49.0 3.49.0
OSV npm svelte < 3.49.0 3.49.0

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 12 Jul 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Jul 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.