{"id":"GHSA-78vq-9j56-wrfr","summary":"Gon gem lack of escaping certain input when outputting as JSON","details":"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.","aliases":["CVE-2020-25739"],"modified":"2024-02-19T05:30:33.422300Z","published":"2021-04-30T17:29:15Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-04-28T15:05:22Z","nvd_published_at":"2020-09-23T14:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25739"},{"type":"WEB","url":"https://github.com/gazay/gon/commit/fe3c7b2191a992386dc9edd37de5447a4e809bc7"},{"type":"PACKAGE","url":"https://github.com/gazay/gon"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/gon/CVE-2020-25739.yml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00018.html"},{"type":"WEB","url":"https://usn.ubuntu.com/4560-1"}],"affected":[{"package":{"name":"gon","ecosystem":"RubyGems","purl":"pkg:gem/gon"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.0"}]}],"versions":["0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.3.0","1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.1.0","2.1.2","2.2.0","2.2.2","2.3.0","3.0.0","3.0.2","3.0.3","3.0.4","3.0.5","4.0.0","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.1.0","5.1.1","5.1.2","5.2.0","5.2.1","5.2.2","5.2.3","6.0.0","6.0.1","6.1.0","6.2.0","6.2.1","6.3.1","6.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-78vq-9j56-wrfr/GHSA-78vq-9j56-wrfr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}