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.

Project Subscriptions

Vendors Products
Debian Linux Subscribe
Loofah Project Subscribe
Satellite Subscribe
Rubyonrails Subscribe
Rails Html Sanitizers Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-3566-1 ruby-rails-html-sanitizer security update
Debian DLA Debian DLA DLA-3902-1 ruby-rails-html-sanitizer security update
EUVD EUVD EUVD-2022-7685 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.
Github GHSA Github GHSA GHSA-mcvf-2q2m-x72m Improper neutralization of data URIs may allow XSS in rails-html-sanitizer
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 03 Nov 2025 22:30:00 +0000

Type Values Removed Values Added
References

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00215}

epss

{'score': 0.00234}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-11-03T21:45:59.030Z

Reserved: 2022-01-19T21:23:53.779Z

Link: CVE-2022-23518

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-12-14T17:15:10.713

Modified: 2025-11-03T22:15:56.533

Link: CVE-2022-23518

cve-icon Redhat

Severity : Moderate

Publid Date: 2022-12-13T00:00:00Z

Links: CVE-2022-23518 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses