mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(core): Disable Node.js custom inspection to address CVE-2023-37903 (#7125)
This seems like a better fix than #7122
This commit is contained in:
committed by
GitHub
parent
01f875a94d
commit
a223734a4a
@@ -32,6 +32,10 @@ if (![18, 20].includes(nodeVersionMajor)) {
|
|||||||
// Prevent oclif from loading ts-node and typescript
|
// Prevent oclif from loading ts-node and typescript
|
||||||
process.env.OCLIF_TS_NODE = '0';
|
process.env.OCLIF_TS_NODE = '0';
|
||||||
|
|
||||||
|
// Disable nodejs custom inspection across the app
|
||||||
|
const { inspect } = require('util');
|
||||||
|
inspect.defaultOptions.customInspect = false;
|
||||||
|
|
||||||
require('express-async-errors');
|
require('express-async-errors');
|
||||||
require('source-map-support').install();
|
require('source-map-support').install();
|
||||||
require('reflect-metadata');
|
require('reflect-metadata');
|
||||||
|
|||||||
Reference in New Issue
Block a user