CVE-2022-23517

Inefficient Regular Expression Complexity in rails-html-sanitizer

Published Dec 14, 2022 CVSS 3.1 · 7.5 High EPSS 1.6% KEV · Not listed
Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Certain configurations of rails-html-sanitizer < 1.4.4 use 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 has been patched in version 1.4.4.

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-3566-1 ruby-rails-html-sanitizer security update
Debian DLA Debian DLA DLA-3902-1 ruby-rails-html-sanitizer security update
EUVD EUVD EUVD-2022-7520 rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Certain configurations of rails-html-sanitizer < 1.4.4 use 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 has been patched in version 1.4.4.
Github GHSA Github GHSA GHSA-5x79-w82f-gw8w Inefficient Regular Expression Complexity in rails-html-sanitizer
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00204}

epss

{'score': 0.00222}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', '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, 5:15 PM
Modified
Jun 17, 2026, 4:30 AM
Severity
Moderate
Public date
Dec 13, 2022, 12:00 AM