Gon gem lack of escaping certain input when outputting as JSON
Moderate severity
GitHub Reviewed
Published
Apr 30, 2021
to the GitHub Advisory Database
•
Updated Aug 29, 2023
Description
Published by the National Vulnerability Database
Sep 23, 2020
Reviewed
Apr 28, 2021
Published to the GitHub Advisory Database
Apr 30, 2021
Last updated
Aug 29, 2023
An issue was discovered in the gon gem before gon-6.4.0 for Ruby. MultiJson does not honor the escape_mode parameter to escape fields as an XSS protection mechanism. To mitigate, json_dumper.rb in gon now does escaping for XSS by default without relying on MultiJson.
References