Node.js 24 LTS Makes node.config.json Stable

Node.js 24.23.0 landed on November 30, 2026, and with it the configuration file stopped being an experiment. The flag that used to be spelled --experimental-config-file is now simply --config-file, and node.config.json becomes a first-class place to declare how a project runs. The same capability shipped in the 26 line with 26.12.0; the 24 LTS backport is what makes it safe to adopt in production.

The problem: flags scatter

Any Node.js project that grows past a weekend starts collecting flags. Some live in package.json scripts, some in a NODE_OPTIONS environment variable, some are typed into a CI configuration, and some exist only in the memory of whoever set the project up. Running the app locally quietly diverges from running it in CI, and nobody can point at a single file that explains the difference.

The permission model made this worse. Writing --allow-fs-read, --allow-net and their siblings on a command line produces a line too long to read and far too long to review in a pull request. A security feature that is painful to express tends to go unused.

What changed

The 24.23.0 release notes group several related commits: the config file is marked stable, a permission namespace is added to it, permission flags now propagate to child processes, a single file can carry configuration for more than one major version, and the presence of a namespace implicitly enables its feature.

That last point matters more than it sounds. Declaring a permission block is enough — there is no separate step to remember.

Propagation to child processes closes a practical gap that used to hollow out the whole model. A project would restrict its own disk access, then spawn a child process — a build script, an external tool, a worker — and that process would start with no restrictions at all. After 24.23.0 the config file's permissions are inherited automatically, so the restriction covers the whole process tree rather than only the first process in it.

json
{
  "$schema": "https://nodejs.org/dist/v24.23.0/docs/node-config-schema.json",
  "nodeOptions": {
    "import": ["amaro/strip"],
    "watch-path": "src"
  },
  "test": {
    "test-isolation": "process",
    "test-reporter": "spec"
  },
  "permission": {
    "allow-fs-read": ["./src", "./package.json"],
    "allow-net": true
  }
}
bash
node --config-file app.js

When no path is given, Node.js looks for node.config.json in the current working directory. The official schema at https://nodejs.org/node-config-schema.json defines the namespaces: nodeOptions, test, watch, bench and permission, with the permission block accepting allow-addons, allow-child-process, allow-ffi, allow-fs-read, allow-fs-write, allow-inspector, allow-net, allow-openssl-store, allow-wasi and allow-worker.

Real-world caveats

It is a baseline, not an override. Precedence runs command-line options and NODE_OPTIONS first, then dotenv NODE_OPTIONS, then the configuration file. A CI job can still override whatever the repository declares — which is the right default, but it means the file is not a lock.

Parsing is strict. Unknown keys, or keys used in the wrong namespace, throw. Duplicated keys across namespaces throw. No-op flags are unsupported, and not every V8 flag is available.

The schema is version-bound. Pin $schema to the Node.js version in use. For a repository that runs on both 24 and 26, the configs array with a nodeVersion integer selects the first matching entry.

Treat it as a security surface. The documentation is blunt: Node.js does not sanitize or validate the configuration, so untrusted configuration files must never be used. A node.config.json arrives with every git clone, and it can enable allow-ffi, allow-addons or allow-child-process. It deserves the same review as a build script — the permission model's own CVE history is a reminder that the layer is young.

Takeaway

The value here is not the flags moving location. It is that "how this project runs" becomes a reviewable artifact in version control, diffable in a pull request, and consistent between a laptop and a pipeline. The permission namespace is the part worth adopting first: it is what finally makes the permission model practical to express.

Primary source: Node.js 24.23.0 (LTS) release notes