CVE-2022-23517: Inefficient Regular Expression Complexity in rails-html-sanitizer
Vulnerability summary
CVE-2022-23517 is a high (CVSS 7.5) vulnerability in debian debian_linux. EPSS estimates a 1.59% chance of exploitation in the next 30 days, higher than 76.4% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 7Timeline
- 14-12-2022PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · RubygemsEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.59%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 1.58% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- ruby-rails-html-sanitizer< 1.4.4-1
- debian_linuxEOL10.0
Rails1 product
- rails-html-sanitizer< 1.4.4
RubyGems1 product
- rails-html-sanitizer< 1.4.4
Rubyonrails1 product
- rails_html_sanitizers< 1.4.4
Ubuntu1 product
- ruby-rails-html-sanitizerAll versions (No fix recorded) | < 1.0.3-2ubuntu0.1~esm1 | < 1.0.4-1ubuntu0.1~esm1 | < 1.3.0-1ubuntu0.1~esm1 | < 1.4.2-2ubuntu0.1~esm1
5 vendors · 6 products
References
12 links- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-5x79-w82f-gw8wX Refsource CONFIRMREPORTWEBThird Party Advisory
- github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979X Refsource MISCREPORTWEBPatchThird Party Advisory