@sveltejs/kit is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
SvelteKit performs HTTP content negotiation by parsing the Accept request header with a regular expression in its content-negotiation utility. The regular expression is unanchored, so a specially crafted Accept header value triggers catastrophic backtracking and quadratic processing time. Requests carrying such headers force the server to spend excessive CPU on a single request, producing a remote denial of service where platform header-length limits are raised or absent. The fix anchors the regular expression so Accept header parsing runs in linear time.
You are affected if you are using a version that falls within the vulnerable range and your deployment allows large Accept request headers because platform header-length limits are raised or absent.
@sveltejs/kit is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 2.70.1.
Upgrade the @sveltejs/kit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant