4.7Medium

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

sveltejs kit Published: (29 days ago)

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.

Weakness (CWE): CWE-79

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
svelte kit < 3.0.0
sveltejs kit < 3.0.0, fixed 3.0.0

References and patches