@sentry/sveltekit is vulnerable to Race Condition (TOCTOU)
50
CVE Score
Medium
Race Condition (TOCTOU)
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.
Upgrade the @sentry/sveltekit library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
7.51.0 - 10.42.0
Fixed in 10.43.0@sentry/sveltekit is vulnerable to Race Condition (TOCTOU) in versions 7.51.0 - 10.42.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.