NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-27902: Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers

mediumCVSS 4.0 5.3GHSA-qgvg-pr8v-6rr3

Errors from transformError were not correctly escaped prior to being embedded in the HTML output, causing potential HTML injection and XSS if attacker-controlled content is returned from transformError.

Published Feb 26, 2026

Affected packages

svelte

Ecosystem
npm
Affected
>= 5.53.0, < 5.53.5
Fixed in
5.53.5
Check
npm ls svelte

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Errors from transformError were not correctly escaped prior to being embedded in the HTML output, causing potential HTML injection and XSS if attacker-controlled content is returned from transformError.

Credited to elliott-with-the-longest-name-on-github, KarimPwnz, maksyche.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries