{"record":{"id":"2594fcead9a7c5b8","repo":"n8n-io/n8n","slug":"object-getprototypeof-is-not-allowed","errorCode":null,"errorMessage":"Object.getPrototypeOf is not allowed","messagePattern":"Object\\.getPrototypeOf is not allowed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/expression-runtime/src/runtime/safe-globals.ts","lineNumber":34,"sourceCode":"\t\tconst blockedMethods = [\n\t\t\t'defineProperty',\n\t\t\t'defineProperties',\n\t\t\t'setPrototypeOf',\n\t\t\t'getOwnPropertyDescriptor',\n\t\t\t'getOwnPropertyDescriptors',\n\t\t\t'__defineGetter__',\n\t\t\t'__defineSetter__',\n\t\t\t'__lookupGetter__',\n\t\t\t'__lookupSetter__',\n\t\t];\n\n\t\tif (blockedMethods.includes(prop as string)) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Block getPrototypeOf by throwing (more secure than returning undefined)\n\t\tif (prop === 'getPrototypeOf') {\n\t\t\tthrow new Error('Object.getPrototypeOf is not allowed');\n\t\t}\n\n\t\t// Wrap Object.create to accept only one argument (blocks property descriptor injection)\n\t\tif (prop === 'create') {\n\t\t\treturn (proto: object | null) => Object.create(proto);\n\t\t}\n\n\t\t// Allow other Object methods\n\t\tconst value = (target as any)[prop];\n\t\tif (typeof value === 'function') {\n\t\t\t// Use arrow function wrapper to preserve 'this' binding\n\t\t\treturn (...args: any[]) => value.apply(target, args);\n\t\t}\n\t\treturn value;\n\t},\n});\n\n/**","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/expression-runtime/src/runtime/safe-globals.ts#L16-L52","documentation":"Error \"Object.getPrototypeOf is not allowed\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/expression-runtime/src/runtime/safe-globals.ts:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}