CVE-2018-16468
published 2018-10-30CVE-2018-16468: In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
PriorityP422medium5.4CVSS 3.0
AVNACLPRLUIRSCCLILAN
EPSS
0.91%
55.5th percentile
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | ruby-loofah | < ruby-loofah 2.2.3-1 (bookworm) | ruby-loofah 2.2.3-1 (bookworm) |
| loofah_project | loofah | <= 2.2.2 | — |
| loofah_project | loofah | >= 0 < 2.2.3 | 2.2.3 |
CVSS provenance
nvdv3.05.4MEDIUMCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvdv2.03.5LOWAV:N/AC:M/Au:S/C:N/I:P/A:N
osv5.4MEDIUM
vendor_debian5.4MEDIUM
vendor_redhat5.4MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Loofah Cross-site Scripting vulnerability
osv·2018-11-01
CVE-2018-16468 [MEDIUM] Loofah Cross-site Scripting vulnerability
Loofah Cross-site Scripting vulnerability
In the Loofah gem for Ruby, through version 2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. Users are advised to upgrade to version 2.2.3.
See https://github.com/flavorjones/loofah/issues/154 for more details.
GHSA
Loofah Cross-site Scripting vulnerability
ghsa·2018-11-01
CVE-2018-16468 [MEDIUM] CWE-79 Loofah Cross-site Scripting vulnerability
Loofah Cross-site Scripting vulnerability
In the Loofah gem for Ruby, through version 2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. Users are advised to upgrade to version 2.2.3.
See https://github.com/flavorjones/loofah/issues/154 for more details.
OSV
CVE-2018-16468: In the Loofah gem for Ruby, through v2
osv·2018-10-30·CVSS 5.4
CVE-2018-16468 [MEDIUM] CVE-2018-16468: In the Loofah gem for Ruby, through v2
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Red Hat
rubygem-loofah: XXS when a crafted SVG element is republished
vendor_redhat·2018-10-27·CVSS 5.4
CVE-2018-16468 [MEDIUM] CWE-79 rubygem-loofah: XXS when a crafted SVG element is republished
rubygem-loofah: XXS when a crafted SVG element is republished
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Statement: Red Hat Satellite 6 does not allow displaying user-defined SVGs and is thus not affected by this CVE.
Package: cfme-amazon-smartstate (CloudForms Management Engine 5) - Not affected
Package: cfme-gemset (CloudForms Management Engine 5) - Not affected
Package: tfm-ror51-rubygem-loofah (Red Hat Satellite 6) - Will not fix
Package: rh-ror42-rubygem-loofah (Red Hat Software Collections) - Will not fix
Package: rh-ror50-rubygem-loofah (Red Hat Software Collections) - Will not fix
Debian
CVE-2018-16468: ruby-loofah - In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in ...
vendor_debian·2018·CVSS 5.4
CVE-2018-16468 [MEDIUM] CVE-2018-16468: ruby-loofah - In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in ...
In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
Scope: local
bookworm: resolved (fixed in 2.2.3-1)
bullseye: resolved (fixed in 2.2.3-1)
forky: resolved (fixed in 2.2.3-1)
sid: resolved (fixed in 2.2.3-1)
trixie: resolved (fixed in 2.2.3-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished
bugzilla·2018-11-05·CVSS 5.4
CVE-2018-16468 [MEDIUM] CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished
CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished
A flaw was found in the Loofah gem for Ruby, through v2.2.2. An XSS due to an unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.
References:
https://github.com/flavorjones/loofah/issues/154
Upstream Patch:
https://github.com/flavorjones/loofah/commit/be0fd3ac0fad452730f10e318fa31706257fd081
Discussion:
Created rubygem-loofah tracking bugs for this issue:
Affects: fedora-all [bug 1646716]
---
Red Hat CloudForms 5.10 and 5.11 is no more affected since gem is updated in cfme-gemset.
cloudforms_managementengine:5.10/cfme-gemset-0:5.10.15.1-1.el7cf:rubygem:loofah-2.2.3
cloudforms_managementengine:5.10/cfme-amazon-smartstate-0:5.10.15.1-1.el7cf:rubygem:loofah-2.2.3
Bugzilla
CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished [fedora-all]
bugzilla·2018-11-05·CVSS 5.4
CVE-2018-16468 [MEDIUM] CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished [fedora-all]
CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple suppor
2018-10-30
Published