GitHub Advisoryadvisory · RubyGems

GHSA-78vq-9j56-wrfr Gon gem lack of escaping certain input when outputting as JSON

MEDIUM Published 2021-04-30 Modified 2023-08-29 Official page ↗
Aliases
CVE-2020-25739
Ecosystem
RubyGems
Packages
gon
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2021-04-28

Affected packages

• RubyGems gon: < 6.4.0 → fixed in 6.4.0

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.

Related

Alias · CVE (1)

  • CVE-2020-25739 An issue was discovered in the gon gem before gon-6.4.0 for Ruby. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References