PT-2023-22082 · Sveltekit · Sveltekit

Ry0Tak

·

Published

2023-04-06

·

Updated

2023-04-14

·

CVE-2023-29008

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions SvelteKit versions prior to 1.15.2
Description The SvelteKit framework provides out-of-the-box cross-site request forgery (CSRF) protection. However, this protection can be bypassed in versions prior to 1.15.2 by specifying an upper-cased Content-Type header value. This allows malicious requests to be submitted from third-party domains, potentially leading to unauthorized access to users' accounts. The issue can be exploited in certain scenarios, such as when the target site sets SameSite=None on its auth cookie and the user visits a malicious site in a Chromium-based browser, or when the target site doesn't set the SameSite attribute explicitly and the user visits a malicious site with Firefox/Safari with tracking protections turned off.
Recommendations For versions prior to 1.15.2, update to SvelteKit 1.15.2 to patch the issue. Additionally, explicitly set SameSite to a value other than None on authentication cookies, especially if the upgrade cannot be done in a timely manner.

Exploit

Fix

SSRF

CSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2023-29008
GHSA-GV7G-X59X-WF8F

Affected Products

Sveltekit