CVE-2022-23517
HIGH 7.5CVSS 3.1Inefficient Regular Expression Complexity in rails-html-sanitizer
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.
- Published
- 14 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-5x79-w82f-gw8w
- Sources
- NVDJSONOSV GHSA-5x79-w82f-gw8wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | rails_html_sanitizerscpe:2.3:a:rubyonrails:rails_html_sanitizers:*:*:*:*:*:rails:*:* |
< 1.4.4 | 1.4.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | rails-html-sanitizer | < 1.4.4 | 1.4.4 |
References
- https://github.com/rails/rails-html-sanitizer/commit/56c61c0cebd1e493e8ad7bca2a0191609a4a6979 · Patch, Third Party Advisory, WEB
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-5x79-w82f-gw8w · Third Party Advisory, WEB
- https://hackerone.com/reports/1684163 · Permissions Required, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2023/09/msg00012.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23517 · ADVISORY
- https://github.com/rails/rails-html-sanitizer · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23517.yml · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 14 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Dec 2022)