CVE-2020-25739
Gon gem lack of escaping certain input when outputting as JSON
Reported by mitre · Published September 23, 2020
gon is fixed in 6.4.0 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gon | RubyGems | 6.4.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| RubyGems | gon | 0 |
| n/a | n/a | * |
Timeline
- Sep 23, 2020 CVE Published
- Oct 5, 2020 CVE Updated
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-25739
vulnetix vdb fixes CVE-2020-25739
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-25739/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [debian-lts-announce] 20200926 [SECURITY] [DLA 2380-1] ruby-gon security update mailing-listx_refsource_MLIST
- USN-4560-1 vendor-advisoryx_refsource_UBUNTU
- https://nvd.nist.gov/vuln/detail/CVE-2020-25739 advisory