All reports
Medium

Gon gem lack of escaping certain input when outputting as JSON

Affected versions

RubyGemsgon
Affected versions
< 6.4.0
Fixed version
6.4.0

Exploitation

CVE-2020-25739

Probability of exploitation in the next 30 days: 1.38%

FIRST EPSS · 2026-11-22

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.

Links