{"api_version":"1","generated_at":"2026-04-23T00:41:46+00:00","cve":"CVE-2022-23515","urls":{"html":"https://cve.report/CVE-2022-23515","api":"https://cve.report/api/cve/CVE-2022-23515.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23515","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23515"},"summary":{"title":"CVE-2022-23515","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-14 14:15:00","updated_at":"2024-02-01 16:11:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://hackerone.com/reports/1694173","name":"https://hackerone.com/reports/1694173","refsource":"MISC","tags":[],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flavorjones/loofah/issues/101","name":"https://github.com/flavorjones/loofah/issues/101","refsource":"MISC","tags":[],"title":"Data URI's get sanitized · Issue #101 · flavorjones/loofah · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","name":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","refsource":"MISC","tags":[],"title":"[SECURITY] [DLA 3565-1] ruby-loofah security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx","name":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx","refsource":"MISC","tags":[],"title":"Improper neutralization of data URIs may allow XSS in Loofah · Advisory · flavorjones/loofah · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23515","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23515","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23515","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23515","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"loofah_project","cpe5":"loofah","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-23515","qid":"183621","title":"Debian Security Update for ruby-loofah (CVE-2022-23515)"},{"cve":"CVE-2022-23515","qid":"241405","title":"Red Hat Update for Satellite 6.13 (RHSA-2023:2097)"},{"cve":"CVE-2022-23515","qid":"6000028","title":"Debian Security Update for ruby-loofah (DLA 3565-1)"},{"cve":"CVE-2022-23515","qid":"960924","title":"Rocky Linux Security Update for Satellite (RLSA-2023:2097)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-23515","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","cweId":"CWE-79"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"flavorjones","product":{"product_data":[{"product_name":"loofah","version":{"version_data":[{"version_affected":"=","version_value":">= 2.1.0, < 2.19.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx","refsource":"MISC","name":"https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx"},{"url":"https://github.com/flavorjones/loofah/issues/101","refsource":"MISC","name":"https://github.com/flavorjones/loofah/issues/101"},{"url":"https://hackerone.com/reports/1694173","refsource":"MISC","name":"https://hackerone.com/reports/1694173"},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","refsource":"MISC","name":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html"}]},"source":{"advisory":"GHSA-228g-948r-83gx","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-14 14:15:00","lastModifiedDate":"2024-02-01 16:11:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*","versionStartIncluding":"2.1.0","versionEndExcluding":"2.19.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23515","Ordinal":"226347","Title":"CVE-2022-23515","CVE":"CVE-2022-23515","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23515","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}