Vulnerability
CVE-2022-23516
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.
12 advisories report this vulnerability, across 6 ecosystems.
Advisories
-
DEBIAN-CVE-2022-23516
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…
-
DLA-3565-1
ruby-loofah - security update
-
DLA-3901-1
ruby-loofah - security update
-
GHSA-3x8r-x6xp-q4vm
Uncontrolled Recursion in Loofah
-
RHSA-2023:2097
Red Hat Security Advisory: Satellite 6.13 Release
-
SUSE-SU-2023:1657-1
Security update for rubygem-loofah
-
SUSEVEX-CVE-2022-23516
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…
-
UBUNTU-CVE-2022-23516
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…
-
openSUSE-SU-2024:12768-1
ruby3.1-rubygem-loofah-2.19.1-1.1 on GA media
-
openSUSE-SU-2024:14171-1
ruby3.3-rubygem-loofah-2.22.0-1.5 on GA media
-
openSUSE-SU-2025:15120-1
ruby3.4-rubygem-loofah-2.23.1-1.3 on GA media
-
openSUSE-SU-2026:10353-1
ruby4.0-rubygem-loofah-2.23.1-1.5 on GA media