High severityNVD Advisory· Published Dec 14, 2022· Updated Nov 3, 2025
Inefficient Regular Expression Complexity in Loofah
CVE-2022-23514
Description
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah < 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
loofahRubyGems | < 2.19.1 | 2.19.1 |
Affected products
8- ghsa-coords7 versionspkg:gem/loofahpkg:rpm/opensuse/rubygem-loofah&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/rubygem-loofah&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP4
< 2.19.1+ 6 more
- (no CPE)range: < 2.19.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.19.1-1.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- Range: < 2.19.1
Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-486f-hjj9-9vhhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23514ghsaADVISORY
- github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143ghsaWEB
- github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhhghsax_refsource_CONFIRMWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23514.ymlghsaWEB
- hackerone.com/reports/1684163ghsax_refsource_MISCWEB
- lists.debian.org/debian-lts-announce/2023/09/msg00011.htmlghsaWEB
- lists.debian.org/debian-lts-announce/2024/09/msg00044.htmlghsaWEB
News mentions
0No linked articles in our index yet.