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.
Published: 2026-10-21
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting
Action: Patch
AI Analysis

Impact

SvelteKit versions earlier than 3.0.0 are vulnerable to a cross‑site scripting flaw caused by unescaped insertion of a cache‑control header value into a <meta http-equiv="cache-control"> tag on prerendered pages. The flaw allows an attacker who can influence that header at prerender time to break out of the content attribute and inject arbitrary HTML or JavaScript that executes when a user subsequently visits the page.

Affected Systems

The affected product is SvelteKit from the sveltejs organization. Only releases prior to 3.0.0 are impacted; no specific sub‑versions are listed.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, and the EPSS score of less than 1% points to a very low likelihood of exploitation in the wild. The vulnerability is not included in the CISA KEV catalog. The attack requires the ability to influence a prerendered page to set the untrusted cache‑control header value, after which the flaw can be abused to force execution of malicious code by any user who opens the affected page.

Generated by OpenCVE AI on October 21, 2026 at 15:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SvelteKit to version 3.0.0 or newer to remove the unescaped header injection.
  • If an update cannot be applied immediately, sanitize or validate any values used in setHeaders to ensure they are free of characters that could terminate or break out of the HTML attribute.
  • Deploy a CSP policy that restricts inline scripts and mitigates the impact of any accidental injection.

Generated by OpenCVE AI on October 21, 2026 at 15:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-27mw-82g8-phjj SvelteKit : XSS via untrusted cache-control header in prerendered page
History

Wed, 28 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 21 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
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.
Title SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages
First Time appeared Svelte
Svelte kit
Weaknesses CWE-79
CPEs cpe:2.3:a:svelte:kit:*:*:*:*:*:*:*:*
Vendors & Products Svelte
Svelte kit
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-28T15:19:51.281Z

Reserved: 2026-10-20T21:43:23.218Z

Link: CVE-2026-114061

cve-icon Vulnrichment

Updated: 2026-10-28T15:19:45.686Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-21T01:17:29.297

Modified: 2026-10-28T16:17:04.410

Link: CVE-2026-114061

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T10:42:11Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')