CVE-2020-25739
JSON

6.1medium

Gon gem lack of escaping certain input when outputting as JSON

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
1.38% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-78vq-9j56-wrfr

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
gon (RubyGems)before 6.4.0GitHub Advisory Database
gon_project gonbefore 6.4.0NVD
canonical ubuntu_linux18.04NVD
debian debian_linux9.0NVD

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

NVD (es)

Se detectó un problema en la gema gon versiones anteriores a gon-6.4.0 para Ruby. MultiJson, no respeta el parámetro escape_mode para escapar de los campos como mecanismo de protección XSS. Para mitigar, el archivo json_dumper.rb en gon ahora escapa para un ataque de tipo XSS por defecto sin depender de MultiJson

References

Sources

SourceRecordLicence
CVE ListCVE-2020-25739 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-78vq-9j56-wrfr changed 2024-02-19CC-BY-4.0
NVDCVE-2020-25739 changed 2026-06-17Public domain