{"cve":"CVE-2023-29008","nvd":{"published":"2023-04-06T17:15:10.547","modified":"2026-06-17T05:49:10.763","status":"Modified","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.\n\nSvelteKit provides out-of-the-box cross-site request forgery (CSRF) protection to its users. The protection is implemented at `kit/src/runtime/server/respond.js`. While the implementation does a sufficient job of mitigating common CSRF attacks, the protection can be bypassed in versions prior to 1.15.2 by simply specifying an upper-cased `Content-Type` header value. The browser will not send uppercase characters, but this check does not block all expected CORS requests.\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's session, and in extreme scenarios can lead to unauthorized access to users’ accounts. This may lead to all POST operations requiring authentication being allowed in the following cases: If the target site sets `SameSite=None` on its auth cookie and the user visits a malicious site in a Chromium-based browser; if 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; and/or if the user is visiting a malicious site with a very outdated browser.\n\nSvelteKit 1.15.2 contains a patch for this issue. It is also recommended to explicitly set `SameSite` to a value other than `None` on authentication cookies especially if the upgrade cannot be done in a timely manner.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-352","CWE-918"],"references":["https://github.com/sveltejs/kit/commit/ba436c6685e751d968a960fbda65f24cf7a82e9f","https://github.com/sveltejs/kit/security/advisories/GHSA-gv7g-x59x-wf8f","https://github.com/sveltejs/kit/commit/ba436c6685e751d968a960fbda65f24cf7a82e9f","https://github.com/sveltejs/kit/security/advisories/GHSA-gv7g-x59x-wf8f"],"products":["svelte:sveltekit"],"source":"nvd","synced_at":"2026-10-19T21:37:48.383111019+00:00"},"epss":{"cve":"CVE-2023-29008","score":0.00373,"percentile":0.31237,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gv7g-x59x-wf8f","url":"https://osv.dev/vulnerability/GHSA-gv7g-x59x-wf8f","summary":"SvelteKit framework has Insufficient CSRF protection for CORS requests","modified":"2023-11-08T04:12:15.924619Z","packages":[{"ecosystem":"npm","name":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","ranges":["<1.15.2"],"fixed":["1.15.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}