mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08: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:
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');
|
||||||
|
|
Loading…
Reference in a new issue