CVE-2017-16792 Geminabox contains Cross-site Scripting

Medium 6.1 Published Updated

Attackers can inject arbitrary web script via the homepage field in gemspec files, potentially compromising users of the Gem in a Box application.

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-16792?

CVE-2017-16792 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 Nov 2017. 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

Stored cross-site scripting (XSS) vulnerability in "geminabox" (Gem in a Box) before 0.13.10 allows attackers to inject arbitrary web script via the "homepage" value of a ".gemspec" file, related to views/gem.erb and views/index.erb.

Weakness: CWE-79

Which versions are affected by CVE-2017-16792?

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

PackageAffectedFixed in
geminabox RubyGemsAll versions0.13.10
geminabox RubyGemsAll versions0.13.10

Products include Geminabox Project Geminabox.

How do I fix CVE-2017-16792?

Upgrade geminabox to 0.13.10 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-16792 being exploited?

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

Sources

Also known as GHSA-653m-r33x-39ff.

Is CVE-2017-16792 in your software?

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

Check your SBOMs for free