All vulnerabilities

Servers and applications

CVE-2025-15265

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in svelte

Severity
Medium 5.3
Published
15 Jan 2026
Last changed
15 Jan 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.46.4
Exploit chance
0.3% in the next 30 daysHigher than 28% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to view a page or file
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Also known as
GHSA-6738-r8g5-qwp3
Sources
Project advisories (GitHub)

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.

When using the hydratable function, the first argument is used as a key to uniquely identify the data, such that the value is not regenerated in the browser.

This key is embedded into a block in the server-rendered without escaping unsafe characters. A malicious key can break out of the script context and inject arbitrary JavaScript into the HTML response.

This is a cross-site scripting vulnerability affecting applications that have the experimental.async flag enabled and use hydratable with keys incorporating untrusted user input.

  • Impact: Arbitrary JS execution in the client’s browser.
  • Exploitability: Remote, single-request if key is attacker-controlled.
From sveltejs/svelte's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SvelteServers and applications · github:sveltejs/svelte
  • From 5.46.0 before 5.46.4

About Svelte

JavaScript framework

From Wikidata, CC0 1.0.
Share of all websites
0.1%W3Techs, Nov 2026
Developers who used it in the past year
7.2%Stack Overflow Developer Survey 2025, 2025
Weekly downloads (npm)
9,685,203npm, 15 Nov 2026
GitHub stars
88,754GitHub, 15 Nov 2026
Forks
6,054GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
26 Oct 2026GitHub
Developer
Rich HarrisWikidata
License
MIT LicenseWikidata
Written in
JavaScriptWikidata
First released
26 Nov 2016Wikidata
First published on GitHub
20 Nov 2016GitHub

Release lines

ReleaseLatestSecurity fixes
55.57.3Yes
44.2.20Ended 19 Oct 2024
33.59.2Ended 22 Jun 2023
22.16.1Ended 21 Apr 2019
11.64.1Ended 19 Apr 2018

From endoflife.date.

References