Vulnerabilities · 2022 · Rubyonrails
CVE-2022-23518
Rubyonrails Rails Html Sanitizers vulnerability
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
Affected products
Rails Html Sanitizers, Debian Linux, Loofah. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Rubyonrails Rails Html Sanitizers runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-mcvf-2q2m-x72m
- github.com/rails/rails-html-sanitizer/issues/135
- github.com/w3c/svgwg/issues/266
- hackerone.com/reports/1694173
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-23518.y
- nvd.nist.gov/vuln/detail/CVE-2022-23518
- lists.debian.org/debian-lts-announce/2023/09/msg00012.html
- lists.debian.org/debian-lts-announce/2024/09/msg00045.html
- nvd.nist.gov/vuln/detail/CVE-2022-23518
- cve.org/CVERecord?id=CVE-2022-23518
More vulnerabilities in Rubyonrails products
CVE-2024-53989CVE-2024-53988CVE-2024-53987CVE-2024-53986CVE-2024-53985CVE-2024-32464CVE-2024-28103CVE-2024-26144All 134
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.