CVE-2018-3769 grape subject to Cross-site Scripting
An attacker can execute arbitrary scripts in the victim's browser via the format parameter in the Ruby Grape gem.
- 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-2018-3769?
CVE-2018-3769 is a medium-severity cross-site scripting vulnerability in ruby-grape ruby gem, published on 5 Jul 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
ruby-grape ruby gem suffers from a cross-site scripting (XSS) vulnerability via "format" parameter.
Weakness: CWE-79
Which versions are affected by CVE-2018-3769?
2 open source packages ship an affected version, including grape. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
grape RubyGems | All versions | 1.1.0 |
grape RubyGems | All versions | 1.1.0 |
Products include Ruby-Grape Grape.
How do I fix CVE-2018-3769?
Upgrade grape to 1.1.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-2018-3769 being exploited?
There is no known exploitation of CVE-2018-3769 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2018-3769, GHSA-f599-5m7p-hcpf, UBUNTU-CVE-2018-3769.