cve.bz

CVE-2018-16468 Cross-site Scripting

5.4 mediumEPSS 0.9%Fix available

Medium (5.4). EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in loofah 2.2.3.

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

Severity

CVSS 3.0

5.4 medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16468 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16468?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16468?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16468 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
loofah_project:loofahthrough 2.2.2
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g4xq-jx4w-4cjvRubyGemsloofah<2.2.32.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ruby-loofah2.0.3-2+deb9u2DSA-4364-1
Debian12, 13, 14ruby-loofah2.2.3-1DEBIAN-CVE-2018-16468
Ubuntu16.04:LTSruby-loofah2.0.3-2+deb9u2build0.16.04.1UBUNTU-CVE-2018-16468
Ubuntu18.04:LTSruby-loofahno fix listedUBUNTU-CVE-2018-16468
SUSEEnterprise Storage 4, OpenStack Cloud 7, OpenStack Cloud Crowbar 8rubygem-loofah2.0.2-3.5.1SUSE-SU-2019:0394-1
SUSELinux Enterprise High Availability Extension 15rubygem-loofah2.2.2-4.3.1SUSE-SU-2018:3928-1
SUSELinux Enterprise Module for Server Applications 15rmt-server1.1.1-3.13.1SUSE-SU-2019:0272-1
openSUSETumbleweedrmt-server2.6.13-1.1openSUSE-SU-2024:10589-1
openSUSETumbleweedruby3.2-rubygem-loofah2.19.1-1.2openSUSE-SU-2024:13162-1
openSUSETumbleweedrubygem-loofah2.14.0-1.1openSUSE-SU-2024:11900-1
openSUSETumbleweedrubygem-loofah2.22.0-1.5openSUSE-SU-2024:14171-1
openSUSETumbleweedrubygem-loofah2.23.1-1.3openSUSE-SU-2025:15120-1
openSUSETumbleweedrubygem-loofah2.23.1-1.5openSUSE-SU-2026:10353-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Satellite 6 does not allow displaying user-defined SVGs and is thus not affected by this CVE.

ProductPackageStateAdvisory
CloudForms Management Engine 5cfme-amazon-smartstateNot affected
CloudForms Management Engine 5cfme-gemsetNot affected
Red Hat Satellite 6tfm-ror51-rubygem-loofahWill not fix
Red Hat Software Collectionsrh-ror42-rubygem-loofahWill not fix
Red Hat Software Collectionsrh-ror50-rubygem-loofahWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16468.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON