{"id":"EUVD-2023-1208","enisaUuid":"c6180d75-23ec-3997-9bf5-ec634088b002","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.\n\nSvelteKit 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.\n\nIf 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\u0027s session, and in extreme scenarios can lead to unauthorized access to users’ accounts.\n\nSvelteKit 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\u003d 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.","datePublished":"Apr 4, 2023, 9:20:43 PM","dateUpdated":"Feb 10, 2025, 9:29:13 PM","baseScore":8.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/sveltejs/kit/security/advisories/GHSA-5p75-vc5g-8rv2\nhttps://github.com/sveltejs/kit/commit/bb2253d51d00aba2e4353952d4fb0dcde6c77123\nhttps://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%401.15.1\n","aliases":"CVE-2023-29003\nGHSA-5p75-vc5g-8rv2\n","assigner":"GitHub_M","epss":0.56,"enisaIdProduct":[{"id":"a7cedd95-376a-343f-84bd-d2a6c47754ff","product":{"name":"kit","vendor":{"name":"sveltejs"}},"product_version":"\u003c 1.15.1"}],"enisaIdVendor":[{"id":"3ee60658-2e2c-318d-a276-2a5c93d3019e","vendor":{"name":"sveltejs"}}],"enisaIdVulnerability":[{"id":"238c58cd-3083-3c99-a9f5-89c6b81ca44c","vulnerability":{"id":"GHSA-5p75-vc5g-8rv2","description":"SvelteKit vulnerable to Cross-Site Request Forgery","datePublished":"Apr 4, 2023, 9:20:47 PM","dateUpdated":"Jun 21, 2023, 1:48:08 PM","baseScore":null,"references":"https://github.com/sveltejs/kit/security/advisories/GHSA-5p75-vc5g-8rv2\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-29003\nhttps://github.com/sveltejs/kit/commit/bb2253d51d00aba2e4353952d4fb0dcde6c77123\nhttps://github.com/sveltejs/kit\nhttps://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%401.15.1\n","enisa_id":"EUVD-2023-1208\n","aliases":"CVE-2023-29003\nGHSA-5p75-vc5g-8rv2\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:31:53 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"c525deab-67de-3a57-b55e-f5b731ff8831","vulnerability":{"id":"CVE-2023-29003","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.\n\nSvelteKit 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.\n\nIf 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\u0027s session, and in extreme scenarios can lead to unauthorized access to users’ accounts.\n\nSvelteKit 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\u003d 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.","datePublished":"Apr 4, 2023, 9:20:43 PM","dateUpdated":"Feb 10, 2025, 9:29:13 PM","status":"PUBLISHED","baseScore":8.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/sveltejs/kit/security/advisories/GHSA-5p75-vc5g-8rv2\nhttps://github.com/sveltejs/kit/commit/bb2253d51d00aba2e4353952d4fb0dcde6c77123\nhttps://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%401.15.1\n","enisa_id":"EUVD-2023-1208\n","assigner":"GitHub_M","epss":0.56,"dataProcessed":"Nov 17, 2026, 7:25:08 AM","vulnerabilityProduct":[{"id":"f5a04988-aca4-3646-875c-1ca35b323460","product":{"name":"kit","vendor":{"name":"sveltejs"}},"product_version":"\u003c 1.15.1"}],"vulnerabilityVendor":[{"id":"db0ccf1d-3383-3749-8686-cbcb7319ca0f","vendor":{"name":"sveltejs"}}]}}],"enisaIdAdvisory":[]}