mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
🐛 Improve expression security
This commit is contained in:
parent
833c0e4972
commit
2081aedc81
|
@ -114,11 +114,11 @@ export class Expression {
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
data.document = {};
|
data.document = {};
|
||||||
|
// @ts-ignore
|
||||||
|
data.constructor = {};
|
||||||
|
|
||||||
// Execute the expression
|
// Execute the expression
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
||||||
// tmpl.tmpl('{{this.Promise=global.Promise;global=this;}}', data);
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
||||||
const returnValue = tmpl.tmpl(parameterValue, data);
|
const returnValue = tmpl.tmpl(parameterValue, data);
|
||||||
if (typeof returnValue === 'function') {
|
if (typeof returnValue === 'function') {
|
||||||
|
|
Loading…
Reference in a new issue