GHSA-78vq-9j56-wrfrMediumCVSS 6.1

Gon gem lack of escaping certain input when outputting as JSON

Published
April 30, 2021
Last Modified
August 29, 2023

🔗 CVE IDs covered (1)

📋 Description

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.

🎯 Affected products1

  • rubygems/gon:< 6.4.0

🔗 References (6)