home / blog

2026-11-23 · medium

CVE-2026-27119: HTML Injection Vulnerability in Svelte SSR

Svelte SSR vulnerability: HTML injection in options from 5.39.3 to 5.51.4. CVSS 5.4.

CVE-2026-27119: HTML Injection Vulnerability in Svelte SSR

CVE-2026-27119 concerns a vulnerability in the Svelte web framework, where in versions from 5.39.3 to 5.51.4, the server-side rendering (SSR) of <option> elements does not properly escape content, potentially allowing HTML injection in the SSR output. Client-side rendering is not affected.

The vulnerability has a CVSS score of 5.4, classified as medium severity. Unverified signals indicate that exploit examples may be available in public repositories. The vulnerability has been fixed in version 5.51.5.

To protect yourself, it is recommended to immediately upgrade to Svelte version 5.51.5 or later. If upgrading is not possible, additional validation and sanitization of <option> element content should be implemented in applications using SSR.

At a glance

What
HTML injection vulnerability in SSR output of <option> elements
Severity
Medium (CVSS 5.4)
Affected versions
5.39.3 ≤ version ≤ 5.51.4
Fix
Upgrade to version 5.51.5
Status
Vulnerability published with patch available
Action
Upgrade to version 5.51.5 or later

Sources: NVD, CVE-2026-27119

← All articles