CVE-2018-16468
rubygem-loofah: XXS when a crafted SVG element is republished
Overview
Description
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Source: OX vulnerability database
Severity
5.4 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | loofah | <2.2.3 | 2.2.3 |
Open a package to see all its vulnerabilities.
Operating systems · 15 fixes
Red Hat 1 release · 1 package
wont fix 1
rh-ror42-rubygem-loofah
| Release | Package | Fixed in |
|---|---|---|
| 7 | rh-ror42-rubygem-loofah +3 | wont fix |
debian 5 releases · 1 package
fixed 5
ruby-loofah
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-loofah | 2.2.3-1 |
| 12 | ruby-loofah | 2.2.3-1 |
| 13 | ruby-loofah | 2.2.3-1 |
| 14 | ruby-loofah | 2.2.3-1 |
| 9 | ruby-loofah | 2.0.3-2+deb9u2 |
echo 1 release · 1 package
fixed 1
ruby-loofah
| Release | Package | Fixed in |
|---|---|---|
| ruby-loofah | 2.2.3-1 |
openSUSE 1 release · 7 packages
fixed 7
ruby2-7-rubygem-loofah
ruby3-1-rubygem-loofah
ruby3-2-rubygem-loofah
ruby3-3-rubygem-loofah
ruby3-4-rubygem-loofah
ruby4-0-rubygem-loofah
+1
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ruby2-7-rubygem-loofah +1 | 2.12.0-1.2 | openSUSE-SU-2024:11337-1 |
| Tumbleweed | ruby3-1-rubygem-loofah | 2.14.0-1.1 | openSUSE-SU-2024:11900-1 |
| Tumbleweed | ruby3-2-rubygem-loofah | 2.19.1-1.2 | openSUSE-SU-2024:13162-1 |
| Tumbleweed | ruby3-3-rubygem-loofah | 2.22.0-1.5 | openSUSE-SU-2024:14171-1 |
| Tumbleweed | ruby3-4-rubygem-loofah | 2.23.1-1.3 | openSUSE-SU-2025:15120-1 |
| Tumbleweed | ruby4-0-rubygem-loofah | 2.23.1-1.5 | openSUSE-SU-2026:10353-1 |
1 more row
ubuntu 1 release · 1 package
affected 1
ruby-loofah
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | ruby-loofah | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-16468
- github.com https://github.com/flavorjones/loofah
- github.com https://github.com/flavorjones/loofah/issues/154
- hackerone.com https://hackerone.com/reports/429267
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-16468
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-16468
- www.debian.org https://www.debian.org/security/2019/dsa-4364
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.