{"id":"CVE-2020-25739","aliases":["CVE-2020-25739","GHSA-78vq-9j56-wrfr"],"related":[],"kind":"vulnerability","state":"published","title":"Gon gem lack of escaping certain input when outputting as JSON","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en la gema gon versiones anteriores a gon-6.4.0 para Ruby.&#xa0;MultiJson, no respeta el parámetro escape_mode para escapar de los campos como mecanismo de protección XSS.&#xa0;Para mitigar, el archivo json_dumper.rb en gon ahora escapa para un ataque de tipo XSS por defecto sin depender de MultiJson","source":"nvd"}],"published":"2020-09-23T13:53:14.000Z","modified":"2026-06-17T03:07:13.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.4.0"}],"ecosystem":"RubyGems","package":"gon","purl":"pkg:gem/gon","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.4.0"}],"vendor":"gon_project","product":"gon","cpe":"cpe:2.3:a:gon_project:gon:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.04"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gazay/gon/commit/fe3c7b2191a992386dc9edd37de5447a4e809bc7","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00018.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://usn.ubuntu.com/4560-1/","tags":["third-party-advisory","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25739","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/gazay/gon","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/gon/CVE-2020-25739.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://usn.ubuntu.com/4560-1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25739","url":"https://www.cve.org/CVERecord?id=CVE-2020-25739","licence":"CVE Terms of Use","modified":"2024-08-04T15:40:36.985Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-78vq-9j56-wrfr","url":"https://github.com/advisories/GHSA-78vq-9j56-wrfr","licence":"CC-BY-4.0","modified":"2024-02-19T05:28:55.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25739","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25739","licence":"Public domain","modified":"2026-06-17T03:07:13.263Z"}],"updatedAt":"2026-11-25T22:57:54.870Z","epss":{"score":0.01376,"percentile":0.72848,"date":"2026-12-01T12:00:22.000Z"}}