-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promise's domain property allows escaping VM #15673
Comments
Doesn't really strike me as an issue. edit: no opinion on whether promise hooks should be enabled or not. |
... and I never said it was, but it has been the case until now that objects from another context can only be present in a vm context if the user explicitly adds things into the sandbox from another sandbox. I just realized the |
The promises are still tracked, and their handlers will still execute in the correct domain. The creation domain is simply hidden. Fixes: nodejs#15673
The promises are still tracked, and their handlers will still execute in the correct domain. The creation domain is simply hidden. PR-URL: nodejs/node#15695 Fixes: nodejs/node#15673 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
The promises are still tracked, and their handlers will still execute in the correct domain. The creation domain is simply hidden. Backport-PR-URL: REPLACEME PR-URL: nodejs#15695 Fixes: nodejs#15673 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
The promises are still tracked, and their handlers will still execute in the correct domain. The creation domain is simply hidden. Backport-PR-URL: #16074 PR-URL: #15695 Fixes: #15673 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
A question of a larger scope is if the promise hooks should be enabled at all for VM contexts.
The text was updated successfully, but these errors were encountered: