Description
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 it’s users. The protection is implemented at kit/src/runtime/server/respond.js#L52.
Recommendation
Update the @sveltejs/kit package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.15.1
- Patched version(s): 1.15.1
References
Related Issues
- @fastify/oauth2 vulnerable to Cross Site Request Forgery due to reused Oauth2 state - CVE-2023-31999
- Axios Cross-Site Request Forgery Vulnerability - CVE-2023-45857
- NASA Open MCT Cross Site Request Forgery (CSRF) vulnerability - CVE-2023-45884
- Cross-Site Request Forgery (CSRF) in Auth0 - CVE-2018-6874
- Tags:
- npm
- @sveltejs/kit
Anything's wrong? Let us know Last updated on April 06, 2023