Skip to main content
← All vulnerabilities
CVE-2026-114061GHSA-27MW-82G8-PHJJ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • sveltejs kit

    fixed in 3.0.0

  • @sveltejs/kitnpm

    fixed in 3.0.0

References 2

GitHub · sveltejs/kit

vulncheck.com