mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -08:00
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:
parent
4f203fc37e
commit
36a8e911e6
|
@ -42,6 +42,7 @@ export class JavaScriptSandbox extends Sandbox {
|
||||||
console: 'redirect',
|
console: 'redirect',
|
||||||
sandbox: context,
|
sandbox: context,
|
||||||
require: vmResolver,
|
require: vmResolver,
|
||||||
|
wasm: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.vm.on('console.log', (...args: unknown[]) => this.emit('output', ...args));
|
this.vm.on('console.log', (...args: unknown[]) => this.emit('output', ...args));
|
||||||
|
|
Loading…
Reference in a new issue