What’s Vulnerable › Vulnerabilities

CVE-2022-23517: Inefficient Regular Expression Complexity in rails-html-sanitizer

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.

Affected products

How to fix

Upgrade to a fixed version: rails-html-sanitizer 1.4.4; Rubygems Rails-Html-Sanitizer 1.4.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-23517 or the next vulnerability affects your stack