mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Prevent prototype pollution in task runner (#12588)
This commit is contained in:
@@ -106,9 +106,13 @@ export class TaskRunnerProcess extends TypedEmitter<TaskRunnerProcessEventMap> {
|
||||
startNode(grantToken: string, taskBrokerUri: string) {
|
||||
const startScript = require.resolve('@n8n/task-runner/start');
|
||||
|
||||
return spawn('node', ['--disallow-code-generation-from-strings', startScript], {
|
||||
env: this.getProcessEnvVars(grantToken, taskBrokerUri),
|
||||
});
|
||||
return spawn(
|
||||
'node',
|
||||
['--disallow-code-generation-from-strings', '--disable-proto=delete', startScript],
|
||||
{
|
||||
env: this.getProcessEnvVars(grantToken, taskBrokerUri),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@OnShutdown()
|
||||
|
||||
Reference in New Issue
Block a user