Description
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.70.2, the content negotiation header parser used by SvelteKit's request handling (for headers such as Accept) uses a regular expression vulnerable to quadratic backtracking, so a maliciously crafted header value can cause excessive CPU consumption and degrade or deny service. Version 2.70.2 fixes the issue.
Published: 2026-08-07
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates from a regular expression used by SvelteKit to parse content‑negotiation headers such as Accept. A maliciously crafted Accept header can trigger quadratic backtracking in the regex engine, leading to excessive CPU consumption and a denial of service. The weakness is a ReDoS (CWE‑1333) that affects the availability of the application by exhausting server resources.

Affected Systems

SvelteKit, the web application framework maintained by sveltejs, is vulnerable in all releases prior to 2.70.2. The fix is included in 2.70.2, so any deployment running an older version is at risk.

Risk and Exploitability

The CVSS base score of 5.3 indicates a moderate impact, and no EPSS information is available. The vulnerability does not require authentication and can be triggered by placing a specially crafted Accept header in any HTTP request, so an attacker can easily perform a DoS attack against the subscribed service. The vulnerability is not listed in CISA’s KEV catalog, but given the ease of exploitation and resource exhaustion, it remains a relevant threat for exposed web applications.

Generated by OpenCVE AI on August 7, 2026 at 18:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SvelteKit to version 2.70.2 or newer.
  • If upgrading immediately is not possible, filter or strip incoming Accept headers that exceed reasonable length or are malformed, and throttle requests from unfamiliar clients.
  • Monitor server CPU usage and network traffic for spikes that could indicate an ongoing regex‑based DoS attack.

Generated by OpenCVE AI on August 7, 2026 at 18:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-29g2-3rmr-qm68 SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header
History

Fri, 07 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Description SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.70.2, the content negotiation header parser used by SvelteKit's request handling (for headers such as Accept) uses a regular expression vulnerable to quadratic backtracking, so a maliciously crafted header value can cause excessive CPU consumption and degrade or deny service. Version 2.70.2 fixes the issue.
Title SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header
Weaknesses CWE-1333
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T16:49:43.853Z

Reserved: 2026-07-23T23:25:28.896Z

Link: CVE-2026-66062

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T19:00:08Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity