CVE-2022-23518 - CVE House
Back to Database
Status published Medium CVE-2022-23518

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-23518

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

rails-html-sanitizer
Vulnerable Versions:
>= 1.0.3, < 1.4.4

Timeline

Official Publish: December 14th, 2022
Last Modified: November 3rd, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses (CWE)