PatchSiren cyber security CVE debrief
CVE-2026-114061 sveltejs CVE debrief
CVE-2026-114061: SvelteKit XSS via untrusted cache-control header in prerendered page. Applications using SvelteKit's prerendering feature and setting `cache-control` headers from untrusted sources are vulnerable to cross-site scripting (XSS). The vulnerability allows an attacker to inject HTML or JavaScript into the generated page, which can execute when users visit the page. The fix escapes the header value before inserting it into the generated HTML. Upgrade to `@sveltejs/kit` version 3.0.0 or later to remediate the vulnerability.
- Vendor
- sveltejs
- Product
- @sveltejs/kit
- CVSS
- LOW 2.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-23
- Original CVE updated
- 2026-10-23
- Advisory published
- 2026-10-23
- Advisory updated
- 2026-10-23
Who should care
Defenders responsible for SvelteKit applications that use prerendering and set `cache-control` headers from untrusted sources should assess exposure and prioritize remediation. They must verify if their SvelteKit applications are using prerendering and setting `cache-control` headers from untrusted sources, and then plan and implement the necessary upgrades or mitigations.
Why it matters
CVE-2026-114061 is a cross-site scripting (XSS) vulnerability in SvelteKit that allows an attacker to inject malicious code into the generated page. Defenders should prioritize remediation by upgrading to `@sveltejs/kit` version 3.0.0 or later and avoid forwarding untrusted `cache-control` header values with `setHeaders` on prerendered pages.
- Cross-site scripting (XSS) can allow an attacker to inject malicious code into the generated page, which can execute when users visit the page.
- Defenders need to verify if their SvelteKit applications are using prerendering and setting `cache-control` headers from untrusted sources.
- Remediation requires upgrading to `@sveltejs/kit` version 3.0.0 or later.
Technical summary
Applications that prerender pages and use `setHeaders` to set a `cache-control` header from an untrusted source are vulnerable to cross-site scripting (XSS). SvelteKit 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.
Defensive priority
Defenders should prioritize upgrading to `@sveltejs/kit` version 3.0.0 or later to remediate the vulnerability. Additionally, defenders should avoid forwarding untrusted `cache-control` header values with `setHeaders` on prerendered pages and use a fixed, trusted cache policy instead.
Recommended defensive actions
- Upgrade to `@sveltejs/kit` version 3.0.0 or later
- Avoid forwarding untrusted `cache-control` header values with `setHeaders` on prerendered pages
- Use a fixed, trusted cache policy instead
- Confirm whether affected SvelteKit applications exist in managed environments and assign an owner for follow-up.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The vulnerability is caused by SvelteKit inserting the `cache-control` 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.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-114061 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-114061
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-114061 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-114061
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
SvelteKit : XSS via untrusted cache-control header in prerendered page
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/npm/GHSA-27mw-82g8-phjj.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/sveltejs/kit/security/advisories/GHSA-27mw-82g8-phjj
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/sveltejs/kit/commit/d9d55b579743c80ee7cb59c272d864fd9253dae7
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/sveltejs/kit
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-xss-via-cache-control-header-in-prerendered-pages
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.