CVE-2026-42599
Description
Svelte is a performance oriented web framework. Prior to version 5.55.7, when using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers. Note that this vulnerability only triggers if the user's browser has JavaScript enabled but Svelte's hydration mechanism does not reach the vulnerable element before the event fires. This issue has been patched in version 5.55.7.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sveltenpm | < 5.55.7 | 5.55.7 |
Affected products
3Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-pr6f-5x2q-rwfpghsaADVISORY
- github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfpnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-27121ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-42599ghsaADVISORY
- github.com/sveltejs/svelte/releases/tag/svelte%405.55.7nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.