CVE-2022-23518

Improper neutralization of data URIs allows XSS in rails-html-sanitizer

Published Dec 14, 2022 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

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
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00215}

epss

{'score': 0.00234}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:45 PM
Reserved
Jan 19, 2022, 9:23 PM
Status
Modified
Published
Dec 14, 2022, 5:15 PM
Modified
Jun 17, 2026, 4:30 AM
Severity
Moderate
Public date
Dec 13, 2022, 12:00 AM