Skip to content

Commit

Permalink
fix(core): Disable Node.js custom inspection to address CVE-2023-37903 (
Browse files Browse the repository at this point in the history
#7125)

This seems like a better fix than #7122
  • Loading branch information
netroy authored Sep 7, 2023
1 parent 01f875a commit a223734
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ if (![18, 20].includes(nodeVersionMajor)) {
// Prevent oclif from loading ts-node and typescript
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('source-map-support').install();
require('reflect-metadata');
Expand Down

0 comments on commit a223734

Please sign in to comment.