Skip to content

Bugfix/Silent fallback to vm2 for sandbox execution#6206

Merged
HenryHengZJ merged 1 commit intomainfrom
bugfix/Prevent-Forcing-User-To-Use-E2B
Apr 13, 2026
Merged

Bugfix/Silent fallback to vm2 for sandbox execution#6206
HenryHengZJ merged 1 commit intomainfrom
bugfix/Prevent-Forcing-User-To-Use-E2B

Conversation

@HenryHengZJ
Copy link
Copy Markdown
Contributor

silent fallback to vm2 for sandbox execution

@HenryHengZJ
Copy link
Copy Markdown
Contributor Author

#6168 introduced changes that force users to use E2B for sandbox, reverting that as its not a must for self hosted OSS users to use that, silent fallback to using patched version of vm2

@henry-heng-wd henry-heng-wd requested a review from 0xi4o April 13, 2026 15:42
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the executeJavaScriptCode function in utils.ts to introduce a silent fallback when useSandbox is enabled but the E2B_APIKEY is missing. Previously, this condition triggered an error. The reviewer noted that this change could lead to insecure code execution using the deprecated vm2 library without the user's knowledge, violating the principle against silent configuration fallbacks.

@HenryHengZJ HenryHengZJ merged commit 0e52877 into main Apr 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants