Skip to content

Fix Money gem Vulnerability issue #1101

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emorgan67
Copy link

No description provided.

@emorgan67 emorgan67 force-pushed the money-gem-patch branch 2 times, most recently from dc793b3 to 1cabc66 Compare May 22, 2024 18:31
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.'
Copy link
Contributor

@tagliala tagliala May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I guess that :ruby is not safe either, so this should advise to use json only (same for line 267)

@sunny
Copy link
Contributor

sunny commented Jul 24, 2025

Isn’t this an issue only in Ruby versions before 3.1 where loading YAML used an unsafe load? Since we don't support versions before 3.1 and Psych's new YAML loading does not load any unauthorized types, I think this is no longer an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants