CVE-2020-25739
MEDIUM 6.1CVSS 3.1Gon gem lack of escaping certain input when outputting as JSON
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.
- Published
- 23 Sep 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-78vq-9j56-wrfr
- Sources
- NVDJSONOSV GHSA-78vq-9j56-wrfrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gon_project | goncpe:2.3:a:gon_project:gon:*:*:*:*:*:ruby:*:* |
< 6.4.0 | 6.4.0 |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | RubyGems | gon | < 6.4.0 | 6.4.0 |
References
- https://github.com/gazay/gon/commit/fe3c7b2191a992386dc9edd37de5447a4e809bc7 · Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/09/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://usn.ubuntu.com/4560-1/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-25739 · ADVISORY
- https://github.com/gazay/gon · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/gon/CVE-2020-25739.yml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Sep 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Apr 2021)