mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Improve expression security
This commit is contained in:
@@ -99,6 +99,19 @@ export class Expression {
|
||||
);
|
||||
const data = dataProxy.getDataProxy();
|
||||
|
||||
// Support only a subset of process properties
|
||||
// @ts-ignore
|
||||
data.process = {
|
||||
arch: process.arch,
|
||||
env: process.env,
|
||||
platform: process.platform,
|
||||
pid: process.pid,
|
||||
ppid: process.ppid,
|
||||
release: process.release,
|
||||
version: process.pid,
|
||||
versions: process.versions,
|
||||
};
|
||||
|
||||
// Execute the expression
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
||||
|
||||
Reference in New Issue
Block a user