{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-23515","id":"CVE-2022-23515","title":"Improper neutralization of data URIs may allow XSS in Loofah","description":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.1.0, < 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.","descriptionLong":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.1.0, < 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.","published":"2022-12-14T13:23:02.054Z","updated":"2026-10-28T02:30:35.099390535Z","reserved":"2022-01-19T21:23:53.777Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["flavorjones loofah"],"affectedProducts":[{"vendor":"flavorjones","product":"loofah","defaultStatus":null,"versions":[{"version":">= 2.1.0, < 2.19.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"loofah","purl":"pkg:gem/loofah","ranges":[">=2.1.0 <2.19.1"],"fixed":["2.19.1"],"advisory":"GHSA-228g-948r-83gx"}],"cwes":["CWE-79"],"aliases":["GHSA-228g-948r-83gx"],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/flavorjones/loofah/issues/101","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://hackerone.com/reports/1694173","tags":["x_refsource_MISC","x_transferred","Permissions Required","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","tags":["x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23515.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23515","tags":["advisory"]},{"url":"https://github.com/w3c/svgwg/issues/266","tags":["web"]},{"url":"https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f","tags":["web"]},{"url":"https://github.com/flavorjones/loofah","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23515.yml","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00877,"epssPercentile":0.59766,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-23515","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23515","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-23515","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-228g-948r-83gx","ok":true,"note":"GHSA-228g-948r-83gx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-23515","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}