CVE-2017-12098 rails_admin ruby gem XSS

Medium 6.1 Published Updated

An attacker can execute arbitrary JavaScript in a victim's browser via a crafted URL in the Rails Admin gem's filter functionality.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-12098?

CVE-2017-12098 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An exploitable cross site scripting (XSS) vulnerability exists in the add filter functionality of the rails_admin rails gem version 1.2.0. A specially crafted URL can cause an XSS flaw resulting in an attacker being able to execute arbitrary javascript on the victim's browser. An attacker can phish an authenticated user to trigger this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2017-12098?

2 open source packages ship an affected version, including rails_admin. It affects 1 product.

PackageAffectedFixed in
rails_admin RubyGemsAll versions1.3.0
rails_admin RubyGemsAll versions1.3.0

Products include Rails Admin Project Rails Admin.

How do I fix CVE-2017-12098?

Upgrade rails_admin to 1.3.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2017-12098 being exploited?

There is no known exploitation of CVE-2017-12098 in the wild and no public exploit code.

Sources

Also known as GHSA-pxr8-w3jq-rcwj, UBUNTU-CVE-2017-12098.

Is CVE-2017-12098 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free