Advisory

GHSA-78vq-9j56-wrfr

Also known as: CVE-2020-25739

Summary

Gon gem lack of escaping certain input when outputting as JSON

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-30 17:29 UTC
Modified
2024-02-19 05:28 UTC

Affected packages and fixes

gon

RubyGems · All systems

Affected

  • introduced 0, fixed 6.4.0 (ecosystem)

Fixed versions

6.4.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences