{"id":"CVE-2026-114061","aliases":["CVE-2026-114061","GHSA-27mw-82g8-phjj"],"related":[],"kind":"vulnerability","state":"published","title":"SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nApplications that prerender pages and use `setHeaders` to set a `cache-control` header from an untrusted source are vulnerable to cross-site scripting (XSS).\n\nSvelteKit inserts the header value into a `<meta http-equiv=\"cache-control\">` tag without escaping it. An attacker who can influence this value at prerender time can break out of the `content` attribute and inject HTML or JavaScript into the generated page. The injected code can then execute when users visit the page.\n\n### Patches\n\nThe fix escapes the header value before inserting it into the generated HTML. Upgrade to `@sveltejs/kit` version 3.0.0 or later.\n\n### Workarounds\n\nAvoid forwarding untrusted `cache-control` header values with `setHeaders` on prerendered pages. Use a fixed, trusted cache policy instead.","format":"markdown","source":"ghsa"}],"published":"2026-10-21T00:36:35.456Z","modified":"2026-10-28T16:17:04.410Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:N","score":0,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.0.0","status":"affected"},{"type":"semver","version":"3.0.0","status":"unaffected"}],"vendor":"sveltejs","product":"kit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.0"}],"ecosystem":"npm","package":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","source":"ghsa"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-27mw-82g8-phjj","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-xss-via-cache-control-header-in-prerendered-pages","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114061","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit/commit/d9d55b579743c80ee7cb59c272d864fd9253dae7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-28T15:19:38.675Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114061","url":"https://www.cve.org/CVERecord?id=CVE-2026-114061","licence":"CVE Terms of Use","modified":"2026-10-28T15:19:51.281Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27mw-82g8-phjj","url":"https://github.com/advisories/GHSA-27mw-82g8-phjj","licence":"CC-BY-4.0","modified":"2026-10-23T21:00:04.312Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114061","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114061","licence":"Public domain","modified":"2026-10-28T16:17:04.410Z"}],"updatedAt":"2026-11-25T22:59:46.531Z","epss":{"score":0.00213,"percentile":0.12284,"date":"2026-12-01T12:00:22.000Z"}}