Skip to content
Fencer Vulns
medium 5.4

CVE-2018-16468 json

Loofah Cross-site Scripting vulnerability

published 2018-10-30 8 y ago modified 2026-06-17 4 mo ago also GHSA-g4xq-jx4w-4cjv , EUVD-2018-0751

cvss
5.4
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 60%
public exploits
0
none known

Summary

In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

Patch / fix

  • rubygems loofah 2.2.3
  • ruby-loofah Debian 14, Debian 13, Debian 12 2.2.3-1

debian advisories DEBIAN-CVE-2018-16468

  • ruby-loofah Ubuntu 16.04 LTS 2.0.3-2+deb9u2build0.16.04.1

ubuntu advisories UBUNTU-CVE-2018-16468

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rubygem-loofah OpenStack Cloud Crowbar 8, OpenStack Cloud 7, Enterprise Storage 4 2.0.2-3.5.1
  • rmt-server SLE Module for Server Applications 15 1.1.1-3.13.1
  • rubygem-loofah SLE High Availability Extension 15 2.2.2-4.3.1

suse advisories SUSE-SU-2019:0394-1SUSE-SU-2019:0272-1SUSE-SU-2018:3928-1

  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.5
  • rubygem-loofah openSUSE Tumbleweed 2.23.1-1.3
  • rubygem-loofah openSUSE Tumbleweed 2.22.0-1.5
  • rmt-server openSUSE Tumbleweed 2.6.13-1.1
  • rubygem-loofah openSUSE Tumbleweed 2.14.0-1.1
  • ruby3.2-rubygem-loofah openSUSE Tumbleweed 2.19.1-1.2

opensuse advisories openSUSE-SU-2026:10353-1openSUSE-SU-2025:15120-1openSUSE-SU-2024:14171-1openSUSE-SU-2024:10589-1openSUSE-SU-2024:11900-1openSUSE-SU-2024:13162-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-16468 updated cvss 5.4

rubygem-loofah: XXS when a crafted SVG element is republished

  • Red Hat Satellite 6 tfm-ror51-rubygem-loofah Red Hat Software Collections rh-ror42-rubygem-loofah, rh-ror50-rubygem-loofah
    affected: no fix planned “Will not fix”
  • Red Hat CloudForms Management Engine 5 cfme-gemset, cfme-amazon-smartstate
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 5.4 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 3.5 AV:N/AC:M/Au:S/C:N/I:P/A:N
GitHub 3.0 5.4 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
rubygems loofah
<2.2.3
2.2.3

Affected products

  • n/a Loofah (Ruby Gem)

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.