{"id":"UBUNTU-CVE-2022-23515","details":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.1.0, \u003c 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1.","modified":"2025-10-24T04:53:28Z","published":"2022-12-14T14:15:00Z","upstream":["CVE-2022-23515"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-23515"},{"type":"REPORT","url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx"},{"type":"REPORT","url":"https://hackerone.com/reports/1694173"},{"type":"REPORT","url":"https://github.com/flavorjones/loofah/issues/101"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-23515"}],"affected":[{"package":{"name":"ruby-loofah","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-loofah@2.0.3-2+deb9u3build0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.2-1","2.0.3-1","2.0.3-2","2.0.3-2+deb9u1build0.16.04.1","2.0.3-2+deb9u2build0.16.04.1","2.0.3-2+deb9u3build0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.3-2+deb9u3build0.16.04.1","binary_name":"ruby-loofah"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23515.json"}},{"package":{"name":"ruby-loofah","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-loofah@2.2.2-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.3-2","2.2.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.2-1","binary_name":"ruby-loofah"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23515.json"}},{"package":{"name":"ruby-loofah","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-loofah@2.4.0+dfsg-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.3-1","2.3.1+dfsg-1","2.4.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.0+dfsg-1","binary_name":"ruby-loofah"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23515.json"}},{"package":{"name":"ruby-loofah","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-loofah@2.13.0-2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.12.0-1","2.13.0-1","2.13.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.13.0-2","binary_name":"ruby-loofah"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23515.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}