{"id":"CVE-2018-16468","details":"In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.","aliases":["GHSA-g4xq-jx4w-4cjv"],"modified":"2026-04-02T00:55:36.260952Z","published":"2018-10-30T21:29:00.933Z","related":["SUSE-SU-2018:3928-1","SUSE-SU-2019:0272-1","SUSE-SU-2019:0394-1","openSUSE-SU-2019:0185-1","openSUSE-SU-2024:10589-1","openSUSE-SU-2024:11337-1","openSUSE-SU-2024:11900-1","openSUSE-SU-2024:13162-1","openSUSE-SU-2024:14171-1","openSUSE-SU-2025:15120-1","openSUSE-SU-2026:10353-1"],"references":[{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4364"},{"type":"ADVISORY","url":"https://github.com/flavorjones/loofah/issues/154"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/flavorjones/loofah","events":[{"introduced":"0"},{"last_affected":"37af4ee08f9e9531e24287c2783a79d331fc9243"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.2.2"}]}}],"versions":["v0.2.0","v0.2.1","v0.2.2","v0.3.0","v0.3.1","v0.4.0","v0.4.1","v0.4.2","v0.4.3","v0.4.4","v0.4.5","v0.4.6","v0.4.7","v1.0.0","v1.0.0.beta.1","v1.1.0","v1.2.0","v1.2.1","v2.0.0","v2.0.1","v2.0.2","v2.0.3","v2.1.0","v2.1.0.rc1","v2.1.0.rc2","v2.1.1","v2.2.0","v2.2.1","v2.2.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16468.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}