Node.js 24.23.0 (30 November 2026) reads permission settings from node.config.json and passes them to child processes. Measured on 24.22.0 and 24.23.0.
What shipped in Node.js 24.23.0
Node.js 24.23.0 was released on 30 November 2026. Among its changes is a backport, pull request 66830, that brings the configuration-file work from newer release lines to the 24.x line. The backport stabilizes the configuration-file flag, enables the permission namespace from configuration, and propagates its effective grants into child Node.js processes. The supported flag is now --config-file; the experimental spelling remains an alias. The GitHub release timestamp is 30 November UTC, corresponding to 1 December in India.
For anyone using the permission model, this changes two things. Permission settings can now live in node.config.json under a permission object, and the presence of that object enables the permission model by itself. And when such a process starts a child Node.js process, the child now inherits the same grants. This guide measures both on the official Windows x64 builds of 24.22.0 and 24.23.0, explains the mechanism from the source, and covers what to change in services and tools that spawn workers.
The running example is a catalogue import tool at Belgavi's Book Store. Jenya runs it under the permission model: it may read anywhere, may start child processes to parse large files, and may not write outside its output directory. The settings had been on the command line, and Jenya wants them in a configuration file checked into the repository.
The permission model in one paragraph
Started with --permission, a Node.js process denies file system access, child processes, worker threads, native add-ons and a few other capabilities unless granted with flags such as --allow-fs-read, --allow-fs-write and --allow-child-process. The documentation describes the model as a safeguard for trusted code and warns that it "does not protect against malicious code". It can catch accidental access in trusted tools such as the import job. It does not make an untrusted dependency safe, especially when the application grants child-process access.
Measured on 24.22.0 and 24.23.0
The companion example node_config_permissions writes a configuration file that grants allow-fs-read for everything and allow-child-process, and grants no write access. A parent script tries to write a file, then spawns process.execPath to run a small child script that reports process.permission.has(...) for read, write and child processes, and also tries to write. Both release archives were downloaded from nodejs.org and checked against the published SHA-256 sums.
| Command | Version | Parent: permission on, write | Child: read | Child: spawn | Child: write |
|---|---|---|---|---|---|
--config-file=... with "permission": true inside | 24.22.0 | bad option, did not start | not run | not run | not run |
--experimental-config-file=... with "permission": true inside | 24.22.0 | invalid content, did not start | not run | not run | not run |
--permission --experimental-config-file=... (grants in file) | 24.22.0 | on, denied | denied | denied | denied |
--permission --allow-child-process --allow-fs-read=* | 24.22.0 | on, denied | allowed | allowed | denied |
--config-file=... with "permission": true inside | 24.23.0 | on, denied | allowed | allowed | denied |
--permission --config-file=... (grants in file) | 24.23.0 | on, denied | allowed | allowed | denied |
--permission --allow-child-process --allow-fs-read=* | 24.23.0 | on, denied | allowed | allowed | denied |
On 24.22.0, the stable flag name did not exist, and the experimental config file rejected permission as an option inside the permission namespace with "Unknown or not allowed option permission for namespace permission". With --permission on the command line and the grants in the file, the parent ran correctly, but its child ran with the permission model on and none of the grants: it could not read files or start processes of its own. The child's own entry script still ran, because the permission model implicitly allows reading the entry point. Anything that script tried to read next, such as a schema file or a module outside the default allowances, would fail with ERR_ACCESS_DENIED.
On 24.23.0, the configuration file alone enabled the model, and the child inherited exactly the parent's grants: read and spawn allowed, write still denied. The command-line form behaved the same on both versions, which is the comparison that shows the change is about where the grants came from.
How the grants reach the child
Command-line flags appear in process.execArgv, and since 24.4.0 (pull request 58853) child_process has copied permission flags from there into the child's NODE_OPTIONS when the permission model is on. Settings from a configuration file are not in execArgv, so before this change they were not copied, while --permission itself was. The new code in lib/child_process.js adds a second loop with the comment "Flags set through --config-file are not part of process.execArgv". For each permission flag that was not already copied, it reads the effective option value and appends it to NODE_OPTIONS, quoting values so that paths with spaces survive.
Two consequences follow from that design. The copy only happens when the parent builds the child's environment and the permission model is enabled. And it does not override a child that already has permission flags of its own: if --permission appears in the child's arguments or NODE_OPTIONS, nothing is copied.
Moving permission flags into a configuration file
{
"permission": {
"allow-fs-read": ["*"],
"allow-fs-write": ["./out"],
"allow-child-process": true
}
}- Pin the minimum version. On 24.22.0 and earlier this file is rejected or ignored in the ways measured above. Put
"engines": {"node": ">=24.23.0"}inpackage.jsonand checkprocess.versionat startup if the tool must not run without the model. - Run with
node --config-file=node.config.json. Thepermissionobject enables the model, so--permissionis no longer needed on the command line. - Check what children receive. Log
process.permission.has(...)for each scope in a child at startup during testing. Expect the parent's grants. - Decide whether children should have fewer grants. Inheritance gives children the same rights as the parent. If a child should only read, start it with its own explicit flags; per the source, a child that already has permission flags is left alone.
- Keep relative paths in mind. Grants such as
./outresolve relative to the working directory. A child started with a differentcwdmay not mean the same directory.
Failure modes
Mixed versions in one fleet. Developers on 24.23 and a CI image on 24.22 see different behaviour for the same file: the CI run fails to start, or its children run with no grants. Pin the version in CI and in engines.
Children that set their own environment. An explicit --permission setting in child arguments or its NODE_OPTIONS prevents the automatic copy described above. Merely supplying another environment variable is different. Review spawn calls and test the child's effective capabilities instead of assuming that every custom environment disables propagation.
Workers versus processes. This change concerns child processes started through child_process. Worker threads run inside the same process and are governed by allow-worker and the process's own model. Test both if the tool uses both.
Treating the model as a sandbox. Granting allow-child-process lets code start any program. Inheritance works through NODE_OPTIONS, so a child that is not a Node.js process ignores it and runs with no restrictions from the model. The documentation says the model "does not protect against malicious code", and every run above printed a SecurityWarning for this flag.
When this does not apply
Services that do not use the permission model are unaffected. Tools that keep permission flags on the command line saw no change in the measurements: children inherited command-line grants on both versions.
How to verify it
Run the companion example with your Node.js binary: it prints the parent and child capabilities for the configuration-file and command-line forms, and its check script asserts the 24.23.0 behaviour. In your own project, add a test that spawns a child under the production configuration and asserts the child's process.permission.has(...) for every scope you rely on, so a runtime upgrade or downgrade that changes inheritance fails loudly.