Intel

AIKIDO-2026-10371

@sentry/sveltekit is vulnerable to Race Condition (TOCTOU)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 17, 2026
March 17, 2026

50

CVE Score

Medium

Race Condition (TOCTOU)

Are you affected? Scan for Free

TL;DR

Affected versions of @sentry/sveltekit use an existsSync(mapFile) check before reading and writing source map files during the SvelteKit build (in closeBundle). Between the time-of-check and time-of-use, the file system can change (e.g. file removed or replaced), causing a time-of-check-time-of-use (TOCTOU) race. A local attacker with control over the build environment could exploit this to influence which file is read or written, potentially leaking build artifacts or corrupting outputs. The patch removes the existsSync guard and wraps the read and write in a try/catch so that missing or changed files are handled without relying on a prior check.

How do I fix this?

Upgrade the @sentry/sveltekit library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

7.51.0 - 10.42.0

Fixed in 10.43.0

Background info

@sentry/sveltekit is vulnerable to Race Condition (TOCTOU) in versions 7.51.0 - 10.42.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea