Quick answers
- Is CVE-2025-15265 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-15265 being exploited in the wild.
- How severe is CVE-2025-15265?
- Medium severity, with a CVSS score of 4, published 15 January 2026.
- Which products and versions are affected?
- svelte (npm) SEMVER:introduced=5.46.0,fixed=5.46.4.
- Is there a fix for CVE-2025-15265?
- Yes. svelte (npm): upgrade to 5.46.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-15265 attacked?
- It is attacked over the network.
- Am I affected by CVE-2025-15265?
- Check whether you run svelte (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- svelte (npm): upgrade to 5.46.4 or later
npm install svelte@5.46.4
Technical details
A cross-site scripting (XSS) vulnerability exists in Svelte 5.46.0 through 5.46.3 in the hydratable function, which is used for server-side rendering with client-side hydration. The vulnerability occurs because keys passed as the first argument to hydratable are embedded directly into a <script> block in the server-rendered HTML without proper escaping of unsafe characters. An attacker who can control the key parameter (by supplying untrusted user input) can break out of the script context and inject arbitrary JavaScript into the HTML response. This requires the experimental.async flag to be enabled and affects only applications that use hydratable with user-controlled keys. The vulnerability is remotely exploitable in a single HTTP request with no special privileges required, though passive user interaction (loading the page) is needed.
Affected products
- Svelte Svelte 5.46.0 to 5.46.3
Identifiers
- CVE-2025-15265
- GHSA-6738-r8g5-qwp3
Timeline
- 2026-01-15: disclosed
- 2026-01-15: patched: Fixed in version 5.46.4