~ / search / GHSA-78vq-9j56-wrfr

GHSA-78vq-9j56-wrfr

Gon gem lack of escaping certain input when outputting as JSON

Source: GitHub Advisory Database (reviewed) Moderate CVE-2020-25739

Packages

EcosystemPackageAffectedFixed in
RubyGems gon < 6.4.0 6.4.0

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.