VDB
Sign up
MEDIUM5.3

GHSA-qgvg-pr8v-6rr3

Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers

Quick fix

GHSA-qgvg-pr8v-6rr3 — svelte: upgrade to the fixed version with the command below.

npm install svelte@5.53.5

Details

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`.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/svelte
Introduced in: 5.53.0Fixed in: 5.53.5
Fixnpm install svelte@5.53.5

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/svelte"]}'