Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e859ca4

Browse filesBrowse files
mcollinadanielleadams
authored andcommitted
meta: clarify the threat model to explain the JSON.parse case
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #47276 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a7620d1 commit e859ca4
Copy full SHA for e859ca4

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Open diff view settings
Collapse file

‎SECURITY.md‎

Copy file name to clipboardExpand all lines: SECURITY.md
+4-2Lines changed: 4 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,17 @@ lead to a loss of confidentiality, integrity, or availability.
116116
npm registry.
117117
The code run inherits all the privileges of the execution user.
118118
4. Inputs provided to it by the code it is asked to run, as it is the
119-
responsibility of the application to perform the required input validations.
119+
responsibility of the application to perform the required input validations,
120+
e.g. the input to `JSON.parse()`.
120121
5. Any connection used for inspector (debugger protocol) regardless of being
121122
opened by command line options or Node.js APIs, and regardless of the remote
122123
end being on the local machine or remote.
123124
6. The file system when requiring a module.
124125
See <https://nodejs.org/api/modules.html#all-together>.
125126

126127
Any unexpected behavior from the data manipulation from Node.js Internal
127-
functions are considered a vulnerability.
128+
functions may be considered a vulnerability if they are expoitable via
129+
untrusted resources.
128130

129131
In addition to addressing vulnerabilities based on the above, the project works
130132
to avoid APIs and internal implementations that make it "easy" for application

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.