Skip to content

Commit

Permalink
do not make an assumption on user-supplied data content (#109425) (#1…
Browse files Browse the repository at this point in the history
…10686)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
  • Loading branch information
kibanamachine and mshustov authored Aug 31, 2021
1 parent adb6030 commit 4689cef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/server/elasticsearch/client/client_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export function parseClientOptions(
...DEFAULT_HEADERS,
...config.customHeaders,
},
// do not make assumption on user-supplied data content
// fixes https://github.com/elastic/kibana/issues/101944
disablePrototypePoisoningProtection: true,
};

if (config.pingTimeout != null) {
Expand Down

0 comments on commit 4689cef

Please sign in to comment.