fix(Code Node): Disable WASM to address CVE-2023-37903 (#7122)

[GH Advisory](https://github.com/advisories/GHSA-g644-9gfx-q4q4)
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-09-06 16:11:39 +02:00 committed by GitHub
parent 4f203fc37e
commit 36a8e911e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,7 @@ export class JavaScriptSandbox extends Sandbox {
console: 'redirect',
sandbox: context,
require: vmResolver,
wasm: false,
});
this.vm.on('console.log', (...args: unknown[]) => this.emit('output', ...args));