# CVE-2020-25739: Gon gem lack of escaping certain input when outputting as JSON

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.38%, higher than 72% of CVEs (2026-12-01)
- Published: 2020-09-23T13:53:14.000Z
- Modified: 2026-06-17T03:07:13.263Z
- Also known as: GHSA-78vq-9j56-wrfr
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gon (RubyGems): before 6.4.0
- gon_project gon: before 6.4.0
- canonical ubuntu_linux: 18.04
- debian debian_linux: 9.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## 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, vendor-advisory)
- <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)
- <https://usn.ubuntu.com/4560-1> (web)

## Sources

- CVE List: [CVE-2020-25739](https://www.cve.org/CVERecord?id=CVE-2020-25739), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-78vq-9j56-wrfr](https://github.com/advisories/GHSA-78vq-9j56-wrfr), CC-BY-4.0, modified 2024-02-19
- NVD: [CVE-2020-25739](https://nvd.nist.gov/vuln/detail/CVE-2020-25739), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25739 · Whole record: https://cve.day/CVE-2020-25739.json · Rebuilt by cve.day 2026-11-25T22:57:54.870Z
