CVE-2023-29003: SvelteKit - Cross-Site Request Forgery
- Cve: CVE-2023-29003
- Name: SvelteKit - Cross-Site Request Forgery
- Description: SvelteKit is a web development framework. The SvelteKit framework offers developers an option to create simple REST APIs. This is done by defining a `+server.js` file, containing endpoint handlers for different HTTP methods. SvelteKit provides out-of-the-box cross-site request forgery (CSRF) protection to its users. While the implementation does a sufficient job in mitigating common CSRF attacks, prior to version 1.15.1, the protection can be bypassed by simply specifying a different `Content-Type` header value. If abused, this issue will allow malicious requests to be submitted from third-party domains, which can allow execution of operations within the context of the victim's session, and in extreme scenarios can lead to unauthorized access to users’ accounts. SvelteKit 1.15.1 updates the `is_form_content_type` function call in the CSRF protection logic to include `text/plain`. As additional hardening of the CSRF protection mechanism against potential method overrides, SvelteKit 1.15.1 is now performing validation on `PUT`, `PATCH` and `DELETE` methods as well. This latter hardening is only needed to protect users who have put in some sort of `?_method= override` feature themselves in their `handle` hook, so that the request that resolve sees could be `PUT`/`PATCH`/`DELETE` when the browser issues a `POST` request.
- Impact: Attackers can submit malicious requests from third-party domains, potentially leading to unauthorized actions and account compromise.
- Remediation: Update to version 1.15.1 or later, which includes enhanced Content-Type validation and method validation for PUT, PATCH, and DELETE requests.
- Vulnerability type: cross_site_request_forgery
- Requirement type: user_interaction
- Requirements: Attacker needs to craft requests with specific Content-Type headers
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00557
- Epss percentile: 0.47316
- Assignee: [email protected]
- Published at: 2023-04-04T22:15:08Z
- Age in days: 1330
- Modified at: 2026-06-17T05:49:10Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-29003
- Nvd status: modified
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs |
| CWE-352 | Cross-Site Request Forgery |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/sveltejs/kit/security/advisories/GHSA-5p75-vc5g-8rv2 | nvd | 2023-04-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/sveltejs/kit/commit/bb2253d51d00aba2e4353952d4fb0dcde6c77123 | Patch |
| https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%401.15.1 | Patch, Release Notes |
| https://github.com/sveltejs/kit/security/advisories/GHSA-5p75-vc5g-8rv2 | Exploit, Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| svelte:sveltekit | < 1.15.1 | no | nvd | /v1/products/svelte/sveltekit |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sveltejs/kit | commit, fix, package, releases, security_advisory | yes | /v1/repositories/sveltejs/kit |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-04-04
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts