sveltejs-kit
Ecosystem: npm
Downloads:
- 0CriticalAffects 0 versions
- 8HighAffects 8 versions
- 0MediumAffects 0 versions
- 11ModerateAffects 13 versions
- 7LowAffects 7 versions
- Critical0 (0.0%)
- High8 (30.8%)
- Medium0 (0.0%)
- Moderate11 (42.3%)
- Low7 (26.9%)
Monthly breakdown
- Critical
- High
- Medium
- Moderate
- Low
- 5 vulnerabilities
- Critical: 0
- High: 2
- Medium: 0
- Moderate: 3
- Low: 0
- 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 (26)
Known vulnerabilities affecting sveltejs-kit, based on data from OSV.
| ID | Severity | Summary | Affected versions | Published | Source |
|---|---|---|---|---|---|
| GHSA-3r8g-jcqq-3p5j | High | SvelteKit: DoS while parsing form data from a remote functions `form`This only affects applications using the experimental remote functions flag and utilizing the `form`, `query`, or `command` remote functions. A specially-crafted request could block the event loop for extended periods of time during parsing. |
| GitHub (opens in a new tab) | |
| GHSA-6cf5-gc4q-fm3x | Moderate | SvelteKit: Private `query.batch` functions could collide, producing unexpected parameter / function combinationsUnder certain circumstances, private (non-exported) `query.batch` functions could end up sharing a batch, resulting in the arguments from one function being passed to another. This only affects apps using the experimental remote functions flag and non-exported `query.batch` functions. |
| GitHub (opens in a new tab) | |
| GHSA-m9j8-jcmv-hp69 | High | SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundleUnder certain circumstances, server-only imports, which typically cannot be included in the client bundle, could make their way into it, potentially exposing secrets. This could only occur when those server-only imports were made through `src/params.js`. |
| GitHub (opens in a new tab) | |
| GHSA-rqp5-r3wg-vg35 | Moderate | SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script executionIf an attacker could, using some form of social engineering or other exploit, get a user to use client-side navigation to navigate to a specially-crafted link, the attacker could cause code from another domain to be imported and run on the user's machine. This only affected apps with `router.resolution: 'server'`. |
| GitHub (opens in a new tab) | |
| GHSA-mw6w-2fmv-pvw3 | Moderate | SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnamesWhen `reroute` turned an invalid percent-encoded path into a valid path, it could potentially trigger a comparison that would crash the server. |
| GitHub (opens in a new tab) | |
| 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-3r8g-jcqq-3p5jHighSvelteKit: DoS while parsing form data from a remote functions `form`
>= 2.42.0, < 3.1.1
This only affects applications using the experimental remote functions flag and utilizing the `form`, `query`, or `command` remote functions. A specially-crafted request could block the event loop for extended periods of time during parsing.
CVE: CVE-2026-128120
- GHSA-6cf5-gc4q-fm3xModerateSvelteKit: Private `query.batch` functions could collide, producing unexpected parameter / function combinations
>= 2.60.1, < 3.1.1
Under certain circumstances, private (non-exported) `query.batch` functions could end up sharing a batch, resulting in the arguments from one function being passed to another. This only affects apps using the experimental remote functions flag and non-exported `query.batch` functions.
CVE: CVE-2026-128119
- GHSA-m9j8-jcmv-hp69HighSvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
>= 3.0.0, < 3.1.1
Under certain circumstances, server-only imports, which typically cannot be included in the client bundle, could make their way into it, potentially exposing secrets. This could only occur when those server-only imports were made through `src/params.js`.
CVE: CVE-2026-128118
- GHSA-rqp5-r3wg-vg35ModerateSvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
>= 3.0.0, < 3.1.1< 2.70.4
If an attacker could, using some form of social engineering or other exploit, get a user to use client-side navigation to navigate to a specially-crafted link, the attacker could cause code from another domain to be imported and run on the user's machine. This only affected apps with `router.resolution: 'server'`.
CVE: CVE-2026-128116
- GHSA-mw6w-2fmv-pvw3ModerateSvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames
>= 3.0.0, < 3.1.1< 2.70.4
When `reroute` turned an invalid percent-encoded path into a valid path, it could potentially trigger a comparison that would crash the server.
CVE: CVE-2026-128117
- 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