{"id":"UBUNTU-CVE-2020-25739","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.","modified":"2026-02-04T04:04:26.817916Z","published":"2020-09-23T14:15:00Z","related":["USN-4560-1"],"upstream":["CVE-2020-25739"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25739"},{"type":"REPORT","url":"https://github.com/gazay/gon/commit/fe3c7b2191a992386dc9edd37de5447a4e809bc7"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4560-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-25739"}],"affected":[{"package":{"name":"ruby-gon","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-gon@6.0.1-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.3-2","6.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-gon","binary_version":"6.0.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25739.json"}},{"package":{"name":"ruby-gon","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-gon@6.1.0-1+deb9u1build0.18.04.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.0-1+deb9u1build0.18.04.1"}]}],"versions":["6.1.0-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ruby-gon","binary_version":"6.1.0-1+deb9u1build0.18.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25739.json"}},{"package":{"name":"ruby-gon","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-gon@6.3.2-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1-1","6.3.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-gon","binary_version":"6.3.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25739.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}