Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-16468

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

Overview

Published
30 Oct 2018
Modified
17 Jun 2026
Medium CVE
1 Registry packages
15 OS packages
5 Linux distributions
Yes Fix available

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

Packages affected by CVE-2018-16468
EcosystemPackageVulnerableFixed 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
Red Hat fixes for CVE-2018-16468
ReleasePackageFixed in
7 rh-ror42-rubygem-loofah +3 wont fix

debian 5 releases · 1 package

fixed 5
ruby-loofah
debian fixes for CVE-2018-16468
ReleasePackageFixed 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
echo fixes for CVE-2018-16468
ReleasePackageFixed 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
openSUSE fixes for CVE-2018-16468
ReleasePackageFixed inAdvisory
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
ubuntu fixes for CVE-2018-16468
ReleasePackageFixed in
18.04-ESM ruby-loofah affected

References

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.