CVE-2020-25739
Ruby vulnerability analysis and mitigation

Overview

An issue was discovered in the gon gem before version 6.4.0 for Ruby, identified as CVE-2020-25739. The vulnerability was related to MultiJson not honoring the escape_mode parameter to escape fields as an XSS protection mechanism. The issue was disclosed in September 2020 and affected Ruby applications using the gon library to send data to JavaScript (NVD).

Technical details

The vulnerability has a CVSS v3.1 Base Score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue was classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting). The vulnerability stemmed from improper escaping of certain input in the JSON dumper component (NVD).

Impact

The vulnerability could allow an attacker to execute cross-site scripting (XSS) attacks due to improper input escaping. This could potentially lead to unauthorized access to sensitive information or execution of malicious code in the context of the user's browser (Ubuntu Security).

Exploitability

The vulnerability requires network access and user interaction to be exploited. An attacker could leverage the lack of proper escaping to execute cross-site scripting attacks against users of applications using the vulnerable gon gem versions (NVD).

Mitigation and workarounds

The vulnerability was fixed in gon version 6.4.0, which implements proper escaping for XSS protection by default without relying on MultiJson. The fix involves modifying json_dumper.rb to handle escaping internally. Users should upgrade to version 6.4.0 or later to address this vulnerability (Gon Commit).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61666HIGH8.9
  • Ruby logoRuby
  • websocket-driver
NoYesAug 17, 2026
CVE-2026-73648MEDIUM5.1
  • Ruby logoRuby
  • ruby3.4-rails-7.2
NoYesAug 13, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • trix
NoYesAug 13, 2026
CVE-2026-73492LOW2.3
  • Ruby logoRuby
  • loofah
NoYesAug 12, 2026
CVE-2026-73491LOW2.3
  • Ruby logoRuby
  • ruby3.3-rails-8.0
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management