Node.js 22
Last reviewed Oct 11, 2026
Prompt Details
Prompt Composition
2prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 22114 lines · 3.7K tokens
Total216 lines · 6.8K tokens
CWE Coverage
- 15
- 20
- 22
- 59
- 78
- 79
- 89
- 95
- 113
- 117
- 208
- 209
- 214
- 250
- 295
- 297
- 319
- 323
- 327
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 522
- 532
- 602
- 653
- 732
- 770
- 807
- 829
- 838
- 862
- 863
- 908
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply the JavaScript ES2026 baseline first. These rules target the Node.js 22 "Jod" maintenance LTS, which mainly receives security and critical fixes.
Release line
- Run the newest Node.js 22 release and redeploy on each 22.x security release, using a line-following tag such as
node:22-slimrebuilt withdocker build --pull, or a bot-updated digest. Where a Dockerfile or CI matrix needs an exact version you can't check on nodejs.org, leave a build-failing placeholder. - Check the runtime with
is-my-node-vulnerableas a locked dev dependency, not barenpx;npm auditdoesn't cover Node.js. - Plan hardening around the APIs this maintenance line actually ships, and rehearse moving to a newer LTS well before its 2027-04-30 end of life.
- Keep build, CI, and production on one 22 release by shipping the tested image or pinning every image and runner to one bot-updated digest, since a line tag resolves at each pull, and enforce the deployed version;
enginesis advisory. - Depend on the permission model only on 22.13.0 and later, where
--permissionbecame stable.
Permission model
- Start production with
--permission, granting only the exact--allow-fs-read,--allow-fs-write,--allow-child-process,--allow-worker,--allow-addons, and--allow-wasicapabilities needed. Pass one path per filesystem flag; comma lists aren't accepted, and*removes the restriction. - Restrict network access outside the process; this line has no network permission for sockets, DNS, or HTTP.
- Treat permissions as defense in depth: they don't contain hostile code,