🐛 Improve expression security

This commit is contained in:
Jan Oberhauser 2021-11-14 00:11:50 +01:00
parent dec81a171a
commit 7a37f73eae

View file

@ -112,6 +112,9 @@ export class Expression {
versions: process.versions,
};
// @ts-ignore
data.document = {};
// Execute the expression
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call