Rather, the high-profile security vulnerability in Rails recently highlighted the potential danger of parsing the user-provided YAML in a Ruby application.
A quick Google search reveals that the YAML Python Library includes the safe_load method, which will only deserialize "simple Python objects, such as integers or lists," rather than objects of any arbitrary type.
Does Ruby have an equivalent? Is there a way to safely accept YAML input in a Ruby application without manually writing a custom parser?
source share