CVE-2026-114061
SvelteKit : XSS via untrusted cache-control header in prerendered page
Overview
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.
Source: OX vulnerability database
Severity
4.7 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | @sveltejs/kit | <3.0.0 | 3.0.0 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/sveltejs/kit
- github.com https://github.com/sveltejs/kit/commit/d9d55b579743c80ee7cb59c272d864fd9253dae7
- github.com https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0
- github.com https://github.com/sveltejs/kit/security/advisories/GHSA-27mw-82g8-phjj
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-114061
- www.vulncheck.com https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-xss-via-cache-control-header-in-prerendered-pages
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.