CVE-2020-25739: XSS
An issue was discovered in the gon gem before gon-6.4.0 for Ruby. MultiJson does not honor the escapemode parameter to escape fields as an XSS protection mechanism. To mitigate, jsondumper.rb in gon now does escaping for XSS by default without relying on MultiJson.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/gonto a version that resolves this vulnerability.Fixed in 6.4.0 - Upgrade
Upgrade
debian/ruby-gonto a version that resolves this vulnerability.Fixed in 6.4.0-1Fixed in 6.4.0-2 - Upgrade
Upgrade
ubuntu/ruby-gonto a version that resolves this vulnerability.Fixed in 6.0.1-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/ruby-gonto a version that resolves this vulnerability.Fixed in 6.1.0-1+deb9u1build0.18.04.1 - Upgrade
Upgrade
ubuntu/ruby-gonto a version that resolves this vulnerability.Fixed in 6.3.2-1ubuntu0.1~esm1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.4.0
Event History
Frequently Asked Questions
What is the severity of CVE-2020-25739?
CVE-2020-25739 is classified as a medium severity vulnerability due to its potential for XSS attacks.
How do I fix CVE-2020-25739?
To fix CVE-2020-25739, upgrade the gon gem to version 6.4.0 or later.
Which versions of the gon gem are affected by CVE-2020-25739?
Versions of the gon gem prior to 6.4.0 are affected by CVE-2020-25739.
Is CVE-2020-25739 applicable to Debian packages?
Yes, versions of ruby-gon prior to 6.4.0-1 and 6.4.0-2 are vulnerable to CVE-2020-25739.
What types of systems are affected by CVE-2020-25739?
CVE-2020-25739 affects systems using the gon gem in Ruby applications, including Debian and Ubuntu installations.