n8n-io/n8n · error · ExpressionError
Cannot access "${key}" due to security concerns
Error message
Cannot access "${key}" due to security concerns What it means
Error "Cannot access "${key}" due to security concerns" thrown in n8n-io/n8n.
Source
Thrown at packages/@n8n/expression-runtime/src/runtime/safe-globals.ts:157
'__defineGetter__',
'__defineSetter__',
'__lookupGetter__',
'__lookupSetter__',
'toString',
'valueOf',
'toLocaleString',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
]);
export function __sanitize(value: unknown): unknown {
// Symbols are not string-coercible and fall outside the denylist; pass through.
if (typeof value === 'symbol') return value;
// Coerce once and return the string so the caller uses the already-checked key.
const key = String(value);
if (unsafeObjectProperties.has(key)) {
throw new ExpressionError(`Cannot access "${key}" due to security concerns`);
}
return key;
}
View on GitHub (pinned to 5ac6606e81)
When it happens
Trigger: Thrown at packages/@n8n/expression-runtime/src/runtime/safe-globals.ts:157 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12).
Data as JSON: /api/errors/0192a90bb4e3060f.
Report an issue: GitHub.