CVE-2022-23516
Uncontrolled Recursion in Loofah
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CDATA sections, making it susceptible to stack exhaustion and raising a SystemStackError exception. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1. Users who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.173% · 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 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:56:19.873Z
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.873Z | 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.873Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:19.873Z | CVE Program |
Affected versions and configuration
flavorjones loofah; default status: unknown: >= 2.2.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.2.0, < 2.19.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm",
"name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm",
"tags": [
"x_refsource_CONFIRM",
"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:56.014Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-23516",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-18T18:19:29.547979Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-18T18:19:45.155Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-3x8r-x6xp-q4vm",
"aliases": [
"CVE-2022-23516"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.19.1"
}
]
}
],
"package": {
"name": "loofah",
"purl": "pkg:gem/loofah",
"ecosystem": "RubyGems"
},
"versions": [
"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-3x8r-x6xp-q4vm/GHSA-3x8r-x6xp-q4vm.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23516",
"type": "ADVISORY"
},
{
"url": "https://github.com/flavorjones/loofah/commit/86f7f6364491b0099d215db858ecdc0c89ded040",
"type": "WEB"
},
{
"url": "https://github.com/flavorjones/loofah",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23516.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-674"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-12-14T14:15:00Z",
"github_reviewed_at": "2022-12-13T17:40:50Z"
}
}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:40:50.000Z
Source modification: 2025-11-04T17:02:06.796ZDocument fingerprint
603ec53f7c9f7cc28194b8144ddc2f6e08a0a817795c137b0b4c3ad97161442d - CVE ProgramConsulted: 2026-11-19T12:56:19.873ZArchived source JSON
Source publication: 2022-12-14T13:26:11.741Z
Source modification: 2025-11-03T21:45:56.014ZDocument fingerprint
01d4ddfd8a09e11cd85f734580168e4b8241f06edec984989b017e521cc9f4bc - 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