Vulnerabilities in pkg:npm/@sveltejs/kit
PACKAGECVE-2026-66062 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting SvelteKit libraries in the npm ecosystem. The issue involves redos (o(n^2)) in content negotiation — unauthenticated dos via the accept header. Remediation is available by upgrading affected packages to version 2.70.2.
pkg:npm/@sveltejs/kit
Vulnerability advisories affecting package pkg:npm/@sveltejs/kit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-29g2-3rmr-qm68 | CVE-2026-66062 | MODERATE | SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header |
| GHSA-866w-xmhq-wj7x | - | MODERATE | SvelteKit: Prototype pollution in file input deletion path in remote-function forms |
| GHSA-wqjv-9729-c5q2 | - | MODERATE | SvelteKit: Big remote form function payloads can cause Node process to crash |
| GHSA-hgv7-v322-mmgr | - | MODERATE | @sveltejs/kit: `query.batch` cross-talk |
| GHSA-3f6h-2hrp-w5wx | CVE-2026-40074 | MODERATE | @sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service |
| GHSA-2crg-3p73-43xp | CVE-2026-40073 | HIGH | @sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass |
| GHSA-fpg4-jhqr-589c | - | LOW | SvelteKit has deserialization expansion in unvalidated `form` remote function leading to Denial of Service (experimental only) |
| GHSA-88qp-p4qg-rqm6 | - | MODERATE | CPU exhaustion in SvelteKit remote form deserialization (experimental only) |
| GHSA-vrhm-gvg7-fpcf | - | MODERATE | Memory exhaustion in SvelteKit remote form deserialization (experimental only) |
| GHSA-j2f3-wq62-6q46 | CVE-2026-22803 | HIGH | @sveltejs/kit has memory amplification DoS vulnerability in Remote Functions binary form deserializer (application/x-sveltekit-formdata) |
| GHSA-j62c-4x62-9r35 | CVE-2025-67647 | HIGH | SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering |
| GHSA-6q87-84jw-cjhp | CVE-2025-32388 | MODERATE | @sveltejs/kit vulnerable to Cross-site Scripting via tracked search_params |
| GHSA-rjjv-87mx-6x3h | CVE-2024-53261 | LOW | @sveltejs/kit vulnerable to XSS on dev mode 404 page |
| GHSA-mh2x-fcqh-fmqv | CVE-2024-53262 | LOW | @sveltejs/kit has unescaped error message included on error page |
| GHSA-g5m6-hxpp-fc49 | CVE-2024-23641 | HIGH | Sending a GET or HEAD request with a body crashes SvelteKit |
| GHSA-5p75-vc5g-8rv2 | CVE-2023-29003 | HIGH | SvelteKit vulnerable to Cross-Site Request Forgery |
| GHSA-gv7g-x59x-wf8f | CVE-2023-29008 | HIGH | SvelteKit framework has Insufficient CSRF protection for CORS requests |
CVE-2026-66062 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-66062
To remediate this vulnerability, upgrade all affected SvelteKit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @sveltejs/kit@2.70.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @sveltejs/kit
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-66062, inspect your project dependencies using npm:
npm ls @sveltejs/kit
Analyze the terminal output to locate any version of SvelteKit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.70.2), your application is affected.
Note: The npm ls @sveltejs/kit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In SvelteKit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-66062 Affected SvelteKit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@sveltejs/kit
|
npm |
< 2.70.2
|
2.70.2
|
References
Frequently Asked Questions
What is CVE-2026-66062?
Which SvelteKit versions are affected?
What version fixes CVE-2026-66062?
Is @sveltejs/kit affected?
What is the CVSS score of CVE-2026-66062?
What CWE is associated with CVE-2026-66062?
How can I check npm dependencies for CVE-2026-66062?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29g2-3rmr-qm68",
"modified" : "2026-08-07T16:50:02Z",
"published" : "2026-08-07T16:50:02Z",
"aliases" : [ "CVE-2026-66062" ],
"summary" : "SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header",
"details" : "### Impact\nSvelteKit is vulnerable to remote CPU-exhaustion DoS attacks via specifically-crafted `Accept` headers. The impact is mitigated by default header length limits on most platforms, but in the case of raised or absent limits a denial of service is possible.\n\n### Patches\nThe vulnerability is patched in `@sveltejs/kit` version 2.70.2.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/kit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.70.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.70.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-29g2-3rmr-qm68"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/commit/82712fc02c24b1dcf5b25d7a52129cd8455f04f5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sveltejs/kit"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.70.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-07T16:50:02Z",
"nvd_published_at" : null
}
}