CVE-2022-23514 HIGH

CVE-2022-23514: Inefficient Regular Expression Complexity in Loofah

Vendor Flavorjones
Product loofah
Weakness CWE-1333
Published December 14, 2022
Last update November 3, 2025

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

December 14, 2022 CVE published
November 3, 2025 Record updated