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