Skip to content

Commit

Permalink
Fixed the vulnerability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev authored and Dev committed May 29, 2024
1 parent 37e183a commit 2d0b054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/money/bank/variable_exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ def import_rates(format, s, opts = {})
warn '[WARNING] Using :ruby format when importing rates is potentially unsafe and ' \
'might lead to remote code execution via Marshal.load deserializer. Consider using ' \
'safe alternatives such as :json and :yaml.'
elsif format == :yaml
warn '[WARNING] Using :yaml format when importing rates is potentially unsafe and ' \
'might lead to remote code execution via Marshal.load deserializer. Consider using ' \
'safe alternatives such as :json and :ruby.'
end

store.transaction do
Expand Down

0 comments on commit 2d0b054

Please sign in to comment.