Vulnerability library
Security checkJanuary 19, 2026

svelte vulnerable to Cross-site Scripting

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmsvelte

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An XSS vulnerability exists in Svelte 5.46.0-2 resulting from improper escaping of hydratable keys. If these keys incorporate untrusted user input, arbitrary JavaScript can be injected into server-rendered HTML.

Recommendation

Update the svelte package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 5.46.0, <= 5.46.3
  • Patched version(s): 5.46.4

References

Could your website be exposed too?

SmartScanner can check your website for svelte vulnerable to Cross-site Scripting and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 19, 2026