What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: sveltejs kit 3.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-114061 or the next vulnerability affects your stack