Vulnerability GHSA-pr6f-5x2q-rwfp

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
6 months ago
May 14, 2026 at 08:19 PM UTC
Svelte SSR vulnerable to cross-site scripting via spread attributes
<5.55.7
<5.55.7

Summary

Svelte SSR vulnerable to cross-site scripting via spread attributes

Details

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 is similar to but different from CVE-2026-27121.

Impacted packages

Timeline

Published
6 months ago
May 14, 2026 at 08:19 PM UTC
Fixed (5.55.7)
6 months ago
May 15, 2026 at 06:01 AM UTC
Last Modified
5 months ago
June 09, 2026 at 06:45 PM UTC