Medium, CVSS 6.1RubyGemsPublished
Gon gem lack of escaping certain input when outputting as JSON
CVE-2020-25739 · GHSA-78vq-9j56-wrfr
- Affected
- RubyGems gon < 6.4.0
- Fixed in
- 6.4.0· Vendor fix available
- Issue
- An issue was discovered in the gon gem before gon-6.4.0 for Ruby. MultiJson does not honor the escapemode parameter to escape fields as an XSS protection mechanism. To mitigate, jsondumper.rb in gon now does escaping for XSS by default without relying on MultiJson.
Recommended action: Upgrade to 6.4.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.