Ubuntu Notice Flags Cross-Site Scripting Flaw in ruby-gon, Gon Gem for Rails Apps
Ubuntu has published a security notice about a cross-site scripting flaw in the Gon gem, a Ruby package used to pass data from Rails applications to JavaScript. The affected Ubuntu package is ruby-gon, and a standard system update is recommended.
WebVulnerabilitiesKey points
- The Gon gem, a Ruby package for passing data from Rails to JavaScript, has a flaw that can enable XSS attacks.
- The flaw stems from improper escaping of certain input types.
- The affected Ubuntu package is ruby-gon; Ubuntu recommends a standard system update.
- The notice does not give affected versions, severity, a CVE ID, or exploitation status.
According to an Ubuntu Security Notice (USN), a flaw in the Gon gem could allow malicious JavaScript to run in a user's browser when the gem processes input designed to trigger it. Gon is a Ruby package that transfers data from Rails applications to JavaScript.
The notice attributes the problem to improper escaping of certain input types, which could be used to carry out cross-site scripting (XSS) attacks. The affected Ubuntu package is ruby-gon, which is part of the Ubuntu software repository. Ubuntu's guidance is to apply a standard system update, which resolves the issue by moving to package versions Ubuntu provides.
The notice does not state which Gon versions are affected, the fixed version numbers, a severity rating, a CVE identifier, or whether the flaw has been exploited in the wild. It also gives no workarounds or detection guidance. Administrators running Rails applications on Ubuntu should consult the original Ubuntu Security Notice for the full details.
What to do
- Check whether ruby-gon is installed on Ubuntu systems that run Rails applications.
- Apply the standard system update that includes the fixed ruby-gon packages from Ubuntu.
- Review the original Ubuntu Security Notice for the package versions it lists.
Original report
“USN-9337-1: Gon gem vulnerability”
It was discovered that Gon gem did not properly escape certain input. An attacker could possibly use this issue to perform cross-site scripting attacks.