CVE-2022-23514

HIGH

Loofah < 2.19.1 - Denial of Service via Inefficient SVG Attribute Regular Expression

Title source: llm
STIX 2.1

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.

References (4)

Core 4

Scores

CVSS v3 7.5
EPSS 0.0169
EPSS Percentile 74.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-1333
Status published
Products (2)
loofah_project/loofah < 2.19.1
rubygems/loofah 0 - 2.19.1RubyGems
Published Dec 14, 2022
Tracked Since Feb 18, 2026