MediumGHSA-h7h7-mm68-gmrcCVE-2026-27119

Svelte affected by XSS in SSR `<option>` element

Published 19 Feb 2026 · Updated 23 Feb 2026

Affected package

Affected
>=5.39.3 <5.51.5
Fixed in
5.51.5
Update to the fixed version for your release line, for example:npm install svelte@5.51.5

Details

In certain circumstances, the server-side rendering output of an <option> element does not properly escape its content, potentially allowing HTML injection in the SSR output. Client-side rendering is not affected.

Is GHSA-h7h7-mm68-gmrc in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected svelte, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.