Node.js 24
Last reviewed Oct 22, 2026
Prompt Details
Prompt Composition
2prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 24101 lines · 5.3K tokens
Total203 lines · 8.4K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 95
- 113
- 117
- 208
- 209
- 214
- 250
- 295
- 297
- 319
- 323
- 330
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 524
- 532
- 602
- 653
- 732
- 770
- 807
- 829
- 838
- 862
- 863
- 908
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply JavaScript ES2026 first. These rules cover Node.js 24 LTS.
Runtime and permissions
- Run the newest Node.js 24 release; redeploy every security release. Rebuild line-following images (e.g.
node:24-slim) withdocker build --pullor bot-updated digests. Verify exact Dockerfile/CI versions on nodejs.org or use build-failing placeholders. - Check runtime security with locked-dev-dependency
is-my-node-vulnerable, never barenpx;npm auditmisses Node.js. - Check
process.versions.undiciagainst published Undici advisories separately from any npm-installedundici; updating the package does not replace the runtime's bundledfetch, WebSocket or EventSource implementation. Check the actual deployed artifact, including releases not labeled as security releases. Match each advisory to the component that implements it: built-in Fetch/WebSocket/EventSource code remains bundled when a custom dispatcher supplies transport, while dispatcher and interceptor conditions apply to the package supplying those components. - Start with
--permission; grant only required--allow-fs-read,--allow-fs-write,--allow-worker,--allow-child-process,--allow-addons,--allow-wasi,--allow-inspectorcapabilities/exact paths. Restrict egress externally: Node 24 has no network permissions. On 24.20.0+, revoke startup-only grants withprocess.permission.drop()once used; it neither closes open descriptors, children or workers nor narrows wildcard or directory grants to sub-paths. - Permissions are defense in depth for trusted code: relative symlinks escape grants;