Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove meaningless oj options #3929

Merged
merged 2 commits into from
Oct 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove object from the available list of FLUENT_OJ_OPTION_MODE
There is less benefit by this option in actual, and it will instroduce
serious security risk since it can execute arbitrary Ruby code.
We remove it since keeping it secure is difficult.

ref: GHSL-2022-067

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed Oct 27, 2022
commit 48e5b85dab1b6d4c273090d538fc11b3f2fd8135
2 changes: 1 addition & 1 deletion lib/fluent/oj_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class OjOptions

ALLOWED_VALUES = {
'bigdecimal_load': %i[bigdecimal float auto],
'mode': %i[strict null compat json rails object custom]
'mode': %i[strict null compat json rails custom]
}

DEFAULTS = {
Expand Down