VYPR
High severityNVD Advisory· Published Dec 14, 2022· Updated Nov 3, 2025

Inefficient Regular Expression Complexity in rails-html-sanitizer

CVE-2022-23517

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
rails-html-sanitizerRubyGems
< 1.4.41.4.4

Affected products

12

Patches

Vulnerability mechanics

References

8

News mentions

0

No linked articles in our index yet.