mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
doc: add path.join and path.normalize clarification
This commit adds explicit clarification to the Node.js threat model that path manipulation functions such as path.join() and path.normalize() trust their input. Issues related to these functions that rely on unsanitized input are not considered vulnerabilities requiring CVEs. PR-URL: https://github.com/nodejs/node/pull/59262 Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
91dadf2897
commit
e6652316a8
1 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,11 @@ then untrusted input must not lead to arbitrary JavaScript code execution.
|
||||||
See <https://nodejs.org/api/modules.html#all-together>.
|
See <https://nodejs.org/api/modules.html#all-together>.
|
||||||
* The `node:wasi` module does not currently provide the comprehensive file
|
* The `node:wasi` module does not currently provide the comprehensive file
|
||||||
system security properties provided by some WASI runtimes.
|
system security properties provided by some WASI runtimes.
|
||||||
|
* The execution path is trusted. Additionally, Node.js path manipulation functions
|
||||||
|
such as `path.join()` and `path.normalize()` trust their input. Reports about issues
|
||||||
|
related to these functions that rely on unsanitized input are not considered vulnerabilities
|
||||||
|
requiring CVEs, as it's the user's responsibility to sanitize path inputs according to
|
||||||
|
their security requirements.
|
||||||
|
|
||||||
Any unexpected behavior from the data manipulation from Node.js Internal
|
Any unexpected behavior from the data manipulation from Node.js Internal
|
||||||
functions may be considered a vulnerability if they are exploitable via
|
functions may be considered a vulnerability if they are exploitable via
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue