CVE-2022-23514

Inefficient Regular Expression Complexity in Loofah

Published Dec 14, 2022 CVSS 3.1 · 7.5 High EPSS 1.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3565-1 ruby-loofah security update
Debian DLA Debian DLA DLA-3901-1 ruby-loofah security update
EUVD EUVD EUVD-2022-7500 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.
Github GHSA Github GHSA GHSA-486f-hjj9-9vhh Inefficient Regular Expression Complexity in Loofah
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:45 PM
Reserved
Jan 19, 2022, 9:23 PM
Status
Modified
Published
Dec 14, 2022, 2:15 PM
Modified
Jun 17, 2026, 4:30 AM
Severity
Moderate
Public date
Dec 13, 2022, 12:00 AM