@@ -3852,6 +3852,21 @@ Type: Documentation-only
3852
3852
` process.features.tls_alpn ` , ` process.features.tls_ocsp ` , and ` process.features.tls_sni ` are
3853
3853
deprecated, as their values are guaranteed to be identical to that of ` process.features.tls ` .
3854
3854
3855
+ ### DEP0190: Passing ` args ` to ` node:child_process ` ` execFile ` /` spawn ` with ` shell ` option ` true `
3856
+
3857
+ <!-- YAML
3858
+ changes:
3859
+ - version:
3860
+ - REPLACEME
3861
+ pr-url: https://github.com/nodejs/node/pull/57389
3862
+ description: Documentation-only deprecation.
3863
+ -->
3864
+
3865
+ Type: Documentation-only
3866
+
3867
+ When an ` args ` array is passed to [ ` child_process.execFile ` ] [ ] or [ ` child_process.spawn ` ] [ ] with the option
3868
+ ` { shell: true } ` , the values are not escaped, only space-separated, which can lead to shell injection.
3869
+
3855
3870
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3856
3871
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3857
3872
[ RFC 8247 Section 2.4 ] : https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3879,6 +3894,8 @@ deprecated, as their values are guaranteed to be identical to that of `process.f
3879
3894
[ `assert` ] : assert.md
3880
3895
[ `asyncResource.runInAsyncScope()` ] : async_context.md#asyncresourceruninasyncscopefn-thisarg-args
3881
3896
[ `buffer.subarray` ] : buffer.md#bufsubarraystart-end
3897
+ [ `child_process.execFile` ] : child_process.md#child_processexecfilefile-args-options-callback
3898
+ [ `child_process.spawn` ] : child_process.md#child_processspawncommand-args-options
3882
3899
[ `child_process` ] : child_process.md
3883
3900
[ `clearInterval()` ] : timers.md#clearintervaltimeout
3884
3901
[ `clearTimeout()` ] : timers.md#cleartimeouttimeout
0 commit comments