vulns.co
/
GKData.io MCP and API Buy me a coffee

Camilo Vera

Svelte hydration: serialization must preserve the enclosing output context

Svelte protected hydration values for their HTML context but did not apply the same protection to keys. Camilo Vera demonstrates browser script execution in a minimal application using experimental async rendering and untrusted hydration keys. Account compromise depends on the application and was not demonstrated in a production account.

Open the referenceResearch PaperReviewed 2026-10-03

How to use this reference

Compare all fields crossing rendering contexts, including metadata keys. The researcher describes replacement with an HTML-safe serializer and regression coverage. The maintainer identifies Svelte 5.46.4 as patched. Preserve one encoding contract across keys and values, rather than treating valid JSON as sufficient for every output context.

Before reading

  • Server-side rendering and framework integration concepts
  • Basic trust-boundary and secure-input review

Context and limits

  • Affected behavior requires experimental async rendering and hydration keys influenced by untrusted input; ordinary Svelte use alone does not establish exposure.
  • The advisory version table lists 5.46.0 through 5.46.3, while its summary says 5.46.0-2; the researcher and Fluid Attacks advisory support the broader table range.
  • March 17 is the article publication; the researcher dates the separate fix and disclosure to January 15, 2026. Learning prerequisites are editorial.

Sources

  1. CVE-2025-15265: Svelte Hydratable Key SSR XSS - LydianCamilo Vera · reviewed 2026-10-03
  2. Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in svelteSvelte · reviewed 2026-10-03
  3. Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR)Fluid Attacks · reviewed 2026-10-03

Record reviewed 2026-10-03. Snapshot af2809c308fc. Open the complete JSON contract.

Library synced 2026-11-18 · cases last reviewed 2026-10-05

af2809c308fc · JSON exports & schemas · CC BY 4.0 content / MIT software