sveltejs-kit
Ecosystem: npm
Downloads: 15.41 Mln
- 0CriticalAffects 0 versions
- 6HighAffects 6 versions
- 0MediumAffects 0 versions
- 8ModerateAffects 8 versions
- 7LowAffects 7 versions
- Critical0 (0.0%)
- High6 (28.6%)
- Medium0 (0.0%)
- Moderate8 (38.1%)
- Low7 (33.3%)
Monthly breakdown
- Critical
- High
- Medium
- Moderate
- Low
- 4 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 0
- Low: 4
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 2
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 1
- Low: 0
- 3 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 2
- Low: 1
- 2 vulnerabilities
- Critical: 0
- High: 2
- Medium: 0
- Moderate: 0
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 0
- Low: 2
- 1 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 0
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 2
- Medium: 0
- Moderate: 0
- Low: 0
Vulnerabilities (21)
Known vulnerabilities affecting sveltejs-kit, based on data from OSV.
| ID | Severity | Summary | Affected versions | Published | Source |
|---|---|---|---|---|---|
| GHSA-27mw-82g8-phjj | Low | SvelteKit : XSS via untrusted cache-control header in prerendered page### Impact 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. The injected code can then execute when users visit the page. ### Patches The fix escapes the header value before inserting it into the generated HTML. Upgrade to `@svel |
| GitHub (opens in a new tab) | |
| GHSA-pfhg-q3qv-9q6r | Low | SvelteKit: URL redirection to untrusted site via enhanced form submission### Impact Applications using enhanced form actions (`use:enhance`) on routes that accept paths beginning with `//`, such as catch-all routes, may be vulnerable to an open redirect. ### Patches A fix has been prepared for `@sveltejs/kit` 3.0.0. Users should upgrade to 3.0.0 or later. The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the current page. ### Workarounds Reject requests whose parsed URL pathname begins with |
| GitHub (opens in a new tab) | |
| GHSA-85pr-xr59-r75h | Low | Duplicate Advisory: SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-27mw-82g8-phjj. This link is maintained to preserve external references. ## Original 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 pa |
| GitHub (opens in a new tab) | |
| GHSA-pvhg-7v4p-f5q9 | Low | Duplicate Advisory: SvelteKit before 3.0.0 Open Redirect via Enhanced Form Actions## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pfhg-q3qv-9q6r. This link is maintained to preserve external references. ## Original Description SvelteKit (@sveltejs/kit) before 3.0.0 contains an open redirect vulnerability in enhanced form actions (use:enhance) on routes accepting paths beginning with a double slash. Attackers can craft action paths starting with // that become protocol-relative URLs, causing non-redirect form results to navigate victims to attacker-controlled sites. |
| GitHub (opens in a new tab) | |
| GHSA-29g2-3rmr-qm68 | Moderate | SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header### Impact SvelteKit 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. ### Patches The vulnerability is patched in `@sveltejs/kit` version 2.70.2. |
| GitHub (opens in a new tab) | |
| GHSA-866w-xmhq-wj7x | Moderate | SvelteKit: Prototype pollution in file input deletion path in remote-function formsIf you use remote form functions, have an input field of type `file`, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype. |
| GitHub (opens in a new tab) | |
| GHSA-wqjv-9729-c5q2 | Moderate | SvelteKit: Big remote form function payloads can cause Node process to crashBig remote form function payloads can cause the Node process to crash. Doing this repeatedly can cause DoS. |
| GitHub (opens in a new tab) | |
| GHSA-hgv7-v322-mmgr | Moderate | @sveltejs/kit: `query.batch` cross-talk`query.batch()` could, under very rare and specific timings, cause concurrent requests from different users to merge and resolve under single request context, enabling cross-user data disclosure. |
| GitHub (opens in a new tab) | |
| GHSA-2crg-3p73-43xp | High | @sveltejs/adapter-node has a BODY_SIZE_LIMIT bypassUnder certain circumstances, requests could bypass the `BODY_SIZE_LIMIT` on SvelteKit applications running with `adapter-node`. This bypass does not affect body size limits at other layers of the application stack, so limits enforced in the WAF, gateway, or at the platform level are unaffected. |
| GitHub (opens in a new tab) | |
| GHSA-3f6h-2hrp-w5wx | Moderate | @sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service`redirect`, when called from inside the `handle` server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled `TypeError`. This could result in DoS on some platforms, especially if the location passed to `redirect` contains unsanitized user input. |
| GitHub (opens in a new tab) |
- GHSA-27mw-82g8-phjjLowSvelteKit : XSS via untrusted cache-control header in prerendered page
< 3.0.0
### Impact 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. The injected code can then execute when users visit the page. ### Patches The fix escapes the header value before inserting it into the generated HTML. Upgrade to `@svel
CVE: CVE-2026-114061
- GHSA-pfhg-q3qv-9q6rLowSvelteKit: URL redirection to untrusted site via enhanced form submission
< 3.0.0
### Impact Applications using enhanced form actions (`use:enhance`) on routes that accept paths beginning with `//`, such as catch-all routes, may be vulnerable to an open redirect. ### Patches A fix has been prepared for `@sveltejs/kit` 3.0.0. Users should upgrade to 3.0.0 or later. The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the current page. ### Workarounds Reject requests whose parsed URL pathname begins with
CVE: CVE-2026-114060
- GHSA-85pr-xr59-r75hLowDuplicate Advisory: SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages
all
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-27mw-82g8-phjj. This link is maintained to preserve external references. ## Original 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 pa
- GHSA-pvhg-7v4p-f5q9LowDuplicate Advisory: SvelteKit before 3.0.0 Open Redirect via Enhanced Form Actions
all
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pfhg-q3qv-9q6r. This link is maintained to preserve external references. ## Original Description SvelteKit (@sveltejs/kit) before 3.0.0 contains an open redirect vulnerability in enhanced form actions (use:enhance) on routes accepting paths beginning with a double slash. Attackers can craft action paths starting with // that become protocol-relative URLs, causing non-redirect form results to navigate victims to attacker-controlled sites.
- GHSA-29g2-3rmr-qm68ModerateSvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header
< 2.70.2
### Impact SvelteKit 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. ### Patches The vulnerability is patched in `@sveltejs/kit` version 2.70.2.
CVE: CVE-2026-66062
- GHSA-866w-xmhq-wj7xModerateSvelteKit: Prototype pollution in file input deletion path in remote-function forms
< 2.69.1
If you use remote form functions, have an input field of type `file`, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype.
CVE: CVE-2026-82257
- GHSA-wqjv-9729-c5q2ModerateSvelteKit: Big remote form function payloads can cause Node process to crash
< 2.69.1
Big remote form function payloads can cause the Node process to crash. Doing this repeatedly can cause DoS.
CVE: CVE-2026-82256
- GHSA-hgv7-v322-mmgrModerate@sveltejs/kit: `query.batch` cross-talk
>= 2.38.0, < 2.60.1
`query.batch()` could, under very rare and specific timings, cause concurrent requests from different users to merge and resolve under single request context, enabling cross-user data disclosure.
CVE: CVE-2026-82258
- GHSA-2crg-3p73-43xpHigh@sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass
< 2.57.1
Under certain circumstances, requests could bypass the `BODY_SIZE_LIMIT` on SvelteKit applications running with `adapter-node`. This bypass does not affect body size limits at other layers of the application stack, so limits enforced in the WAF, gateway, or at the platform level are unaffected.
CVE: CVE-2026-40073
- GHSA-3f6h-2hrp-w5wxModerate@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service
< 2.57.1
`redirect`, when called from inside the `handle` server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled `TypeError`. This could result in DoS on some platforms, especially if the location passed to `redirect` contains unsanitized user input.
CVE: CVE-2026-40074