Cache Deception Vulnerability Found in SvelteKit and Vercel Combo Exposes User Data to Attackers

Cache Deception Vulnerability Found in SvelteKit and Vercel Combo Exposes User Data to Attackers
A serious cache deception flaw, dubbed SvelteSpill, affects SvelteKit applications deployed on Vercel, allowing attackers to steal sensitive user data like session tokens.

Discovered by Aikido Security’s AI pentest on January 20, 2026, the issue stems from the SvelteKit Vercel adapter’s handling of the __pathname query parameter. Vercel has since fixed its platform-wide as of February 19, 2026.

Vulnerability Mechanics

SvelteKit utilizes adapters to integrate with platforms like Vercel, enabling features such as Incremental Static Regeneration (ISR).

The Vercel adapter in serverless.js extracts __pathname from the URL query and rewrites the request’s pathname to it, without validation, enabling path overrides on any request.

Vercel’s caching aggressively applies public, immutable, max-age=31536000 headers to paths under /_app/immutable/, treating them as static assets even if the response is dynamic.

Attackers craft URLs like https://example.vercel.app/_app/immutable/x?__pathname=/api/session. When a logged-in victim visits, the adapter rewrites to /api/sessionfetch private data (e.g., {"token":"1337"}), but Vercel’s cache layer overrides with public caching due to the prefix.

The attacker then requests the same URL without cookies, hitting the cached victim data via X-Vercel-Cache: HIT.

This works on any cookie-authenticated SvelteKit app on Vercel, requiring no misconfiguration.

Aikido’s AI agent identified the gadget during testing, chaining it to full exploitation despite initial cache poisoning dead-ends from Vercel’s serverless static handling.

Aikido disclosed to Vercel on January 21, 2026; triage followed on January 23, with fixes by February 9, including 404s on /_app/immutable/ paths and __pathname stripping. Track via CVE-2026-27118, GHSA-9pq4-5hcf-288c, or Aikido Intel (AIKIDO-2026-10191).

ywAAAAAAQABAAACAUwAOw==

A related DoS in SvelteKit’s experimental features (GHSA-vrhm-gvg7-fpcf) was also fixed. Users should rescan repos with tools like Aikido for confirmation; the fix applies automatically on Vercel.

This highlights caching pitfalls in frameworks; simple prefix rules can expose data when combined with rewrites.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google

The post Cache Deception Vulnerability Found in SvelteKit and Vercel Combo Exposes User Data to Attackers appeared first on Cyber Security News.


Discover more from RSS Feeds Cloud

Subscribe to get the latest posts sent to your email.

Discover more from RSS Feeds Cloud

Subscribe now to keep reading and get access to the full archive.

Continue reading