CVE-2026-27122: Svelte SSR does not validate dynamic element tag names in `<svelte:element>`

Published Feb 19, 2026
·
Updated

svelte performance oriented web framework. Prior to 5.51.5, when using <svelte:element this={tag}> in server-side rendering, the provided tag name is not validated or sanitized before being emitted into the HTML output. If the tag string contains unexpected characters, it can result in HTML injection in the SSR output. Client-side rendering is not affected. This vulnerability is fixed in 5.51.5.

Other sources

When using <svelte:element this={tag}> in server-side rendering, the provided tag name is not validated or sanitized before being emitted into the HTML output. If the tag string contains unexpected characters, it can result in HTML injection in the SSR output. Client-side rendering is not affected.

GitHub

Affected Software

2 affected componentsFixes available
npm/svelte<=5.51.4
5.51.5
svelte Svelte Node.js<5.51.5

Event History

Feb 19, 2026
Advisory Published
via GitHub·03:18 PM
Data Sourced
via GitHub·03:18 PM
DescriptionWeaknessAffected Software
Feb 20, 2026
CVE Published
via MITRE·10:28 PM
Data Sourced
via MITRE·10:28 PM
DescriptionWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeaknessAffected Software
Jan 24, 58126
Event
via FIRST·12:36 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-27122?

CVE-2026-27122 is considered a critical security vulnerability due to its potential impact on server-side rendering in Svelte applications.

2

How do I fix CVE-2026-27122?

To fix CVE-2026-27122, update your Svelte package to version 5.51.5 or higher.

3

What does CVE-2026-27122 affect?

CVE-2026-27122 affects Svelte applications that utilize server-side rendering with dynamic elements specified by user input.

4

How can CVE-2026-27122 be exploited?

CVE-2026-27122 can be exploited if unvalidated tag names are rendered, allowing attackers to inject arbitrary HTML into the server output.

5

Which versions of Svelte are vulnerable to CVE-2026-27122?

Versions of Svelte prior to 5.51.5 are vulnerable to CVE-2026-27122.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203