Skip to content
CVE PROGRAM SOURCE RECORD2.3 Low

CVE-2026-114061

SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages

Description

SvelteKit (@sveltejs/kit) before 3.0.0 contains a cross-site scripting vulnerability in prerendered pages because a cache-control header value set via setHeaders is inserted without escaping into a <meta http-equiv="cache-control"> tag. An attacker who can influence that untrusted value at prerender time can break out of the content attribute and inject HTML or JavaScript that executes when users visit the page.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

sveltejs kit

Default version status: unaffected

  • 0 to < 3.0.0affected
  • 3.0.0unaffected
pkg:npm/%40sveltejs/kit

References