logo

CVE-2020-25739 gon

Package

Manager: gem
Name: gon
Vulnerable Version: >=0 <6.4.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00505 pctl0.6525

Details

Gon gem lack of escaping certain input when outputting as JSON 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.

Metadata

Created: 2021-04-30T17:29:15Z
Modified: 2023-08-29T12:13:04Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-78vq-9j56-wrfr/GHSA-78vq-9j56-wrfr.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-78vq-9j56-wrfr
Finding: F425
Auto approve: 1