CVE-2022-23515
Improper neutralization of data URIs may allow XSS in Loofah
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.877% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.1 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:56:19.887Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:19.887Z | CVE Program |
| epss | verified | 2026-11-19T16:04:32.877Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:45.823Z | OSV |
| affected | verified | 2026-11-19T12:56:19.887Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:19.887Z | CVE Program |
Affected versions and configuration
flavorjones loofah; default status: unknown: >= 2.1.0, < 2.19.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "flavorjones",
"product": "loofah",
"versions": [
{
"status": "affected",
"version": ">= 2.1.0, < 2.19.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx",
"name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/flavorjones/loofah/issues/101",
"name": "https://github.com/flavorjones/loofah/issues/101",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://hackerone.com/reports/1694173",
"name": "https://hackerone.com/reports/1694173",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T21:45:54.553Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-228g-948r-83gx",
"aliases": [
"CVE-2022-23515"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.1.0"
},
{
"fixed": "2.19.1"
}
]
}
],
"package": {
"name": "loofah",
"purl": "pkg:gem/loofah",
"ecosystem": "RubyGems"
},
"versions": [
"2.1.0",
"2.1.1",
"2.10.0",
"2.11.0",
"2.12.0",
"2.13.0",
"2.14.0",
"2.15.0",
"2.16.0",
"2.17.0",
"2.18.0",
"2.19.0",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.3.0",
"2.3.1",
"2.4.0",
"2.5.0",
"2.6.0",
"2.7.0",
"2.8.0",
"2.9.0",
"2.9.1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-228g-948r-83gx/GHSA-228g-948r-83gx.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23515",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah/issues/101",
"type": "WEB"
},
{
"url": "https://github.com/w3c/svgwg/issues/266",
"type": "WEB"
},
{
"url": "https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f",
"type": "WEB"
},
{
"url": "https://hackerone.com/reports/1694173",
"type": "WEB"
},
{
"url": "https://github.com/flavorjones/loofah",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23515.yml",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-12-14T14:15:00Z",
"github_reviewed_at": "2022-12-13T17:39:36Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | RubyGems / package | loofah | Not a distribution channel | 2.19.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:45.823ZArchived source JSON
Source publication: 2022-12-13T17:39:36.000Z
Source modification: 2025-11-04T17:03:00.052ZDocument fingerprint
603ec53f7c9f7cc28194b8144ddc2f6e08a0a817795c137b0b4c3ad97161442d - CVE ProgramConsulted: 2026-11-19T12:56:19.887ZArchived source JSON
Source publication: 2022-12-14T13:23:02.054Z
Source modification: 2025-11-03T21:45:54.553ZDocument fingerprint
248c248c3ac76d61ec3527838800a173747c7291ef56d0afb5462ac7c856f742 - FIRST EPSSConsulted: 2026-11-19T16:04:32.877ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09692db23ae991b23210d76fe49e08c229368c3f28b258bdb2be98d30dab7493
Official status history
- UNKNOWN → PUBLISHED · · evidence