ADVISORIES

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…

    CVE-2022-23516 Debian Updated 20 November 2026
  • DLA-3565-1

    ruby-loofah - security update

    CVE-2022-23514CVE-2022-23515CVE-2022-23516 Debian Updated 20 November 2026
  • DLA-3901-1

    ruby-loofah - security update

    CVE-2022-23514CVE-2022-23515CVE-2022-23516 Debian Updated 20 November 2026
  • GHSA-3x8r-x6xp-q4vm

    Uncontrolled Recursion in Loofah

    High CVE-2022-23516 RubyGems Updated 4 November 2025
  • RHSA-2023:2097

    Red Hat Security Advisory: Satellite 6.13 Release

    CVE-2021-46877CVE-2022-1471CVE-2022-22577CVE-2022-23514 Red Hat Updated 23 November 2026
  • SUSE-SU-2023:1657-1

    Security update for rubygem-loofah

    CVE-2022-23514CVE-2022-23515CVE-2022-23516 SUSEopenSUSE Updated 4 February 2026
  • 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…

    Important CVE-2022-23516 SUSE Updated 26 August 2026
  • 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…

    CVE-2022-23516 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2024:12768-1

    ruby3.1-rubygem-loofah-2.19.1-1.1 on GA media

    CVE-2022-23514CVE-2022-23515CVE-2022-23516 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14171-1

    ruby3.3-rubygem-loofah-2.22.0-1.5 on GA media

    CVE-2018-16468CVE-2018-8048CVE-2019-15587CVE-2022-23514 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15120-1

    ruby3.4-rubygem-loofah-2.23.1-1.3 on GA media

    CVE-2018-16468CVE-2018-8048CVE-2019-15587CVE-2022-23514 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:10353-1

    ruby4.0-rubygem-loofah-2.23.1-1.5 on GA media

    CVE-2018-16468CVE-2018-8048CVE-2019-15587CVE-2022-23514 openSUSE Updated 14 March 2026

References