CVE-2026-27121
Received Received - Intake
Cross-Site Scripting in Svelte SSR via Attribute Spread

Publication date: 2026-02-20

Last updated on: 2026-02-23

Assigner: GitHub, Inc.

Description
svelte performance oriented web framework. Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. 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. This vulnerability is fixed in 5.51.5.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-20
Last Modified
2026-02-23
Generated
2026-06-16
AI Q&A
2026-02-21
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
svelte svelte to 5.51.5 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability affects versions of the Svelte web framework prior to 5.51.5. It is a cross-site scripting (XSS) issue that occurs during server-side rendering when using spread syntax to render attributes from untrusted data. Specifically, event handler properties from user-controlled or external data are included in the rendered HTML output, allowing an attacker to inject malicious event handlers that execute in the browsers of users viewing the affected application.

Impact Analysis

The vulnerability can allow attackers to execute malicious scripts in the browsers of users interacting with the affected application. This can lead to unauthorized actions, data theft, session hijacking, or other malicious activities performed on behalf of the victim without their consent.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, upgrade the svelte framework to version 5.51.5 or later, where the issue is fixed.

Additionally, avoid using spread syntax to render attributes from untrusted or user-controlled data, especially event handler properties, to prevent injection of malicious event handlers.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-27121. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart