CVE-2023-29003: SvelteKit has Insufficient Cross-Site Request Forgery Protection

Published Apr 4, 2023
·
Updated

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 isformcontenttype 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.

Affected Software

1 affected component
svelte Sveltekit Node.js<1.15.1

Event History

Apr 4, 2023
CVE Published
via MITRE·09:20 PM
Data Sourced
via MITRE·09:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-29003?

CVE-2023-29003 is rated as a moderate severity vulnerability.

2

How do I fix CVE-2023-29003?

To fix CVE-2023-29003, upgrade SvelteKit to version 1.15.1 or later.

3

What impact does CVE-2023-29003 have on web applications?

CVE-2023-29003 may allow cross-site request forgery attacks on affected applications.

4

Which versions of SvelteKit are affected by CVE-2023-29003?

SvelteKit versions prior to 1.15.1 are affected by CVE-2023-29003.

5

Is CVE-2023-29003 publicly known?

Yes, CVE-2023-29003 has been publicly disclosed and documented.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203