Highlights
Denial of Service: 13 prior fixes. Scrutinize any change in this area.
packages/sandpack-core/src/sandpack-secret.ts: most-fixed (3 issues). Treat as high-risk during review.
9 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Sandbox Escape: Evaluated code within the sandbox could escape the restricted environment via dynamic import expressions. This was fixed by utilizing a Babel transpiler plugin in the worker to rewrite dynamic import() expressions to a custom $csbImport() helper.
Broken Access Control: Private npm registry tokens could be leaked to untrusted external domains. The mitigation enforces that disclosure of registry secrets is restricted exclusively to explicit, trusted domains inside sandpack via postMessage origin validation.
Auth Bypass: Users could perform unauthorized directory and module relocation API actions because the backend calls did not enforce sandbox ownership. The fix introduces the ensureOwnedSandbox validation check.