CVE-2022-23518 MEDIUM

CVE-2022-23518: Improper neutralization of data URIs allows XSS in rails-html-sanitizer

Vendor Rails
Product rails-html-sanitizer
Weakness CWE-79 · XSS
Published December 14, 2022
Last update November 3, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

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

What the vulnerability does

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.

Key dates

Disclosure timeline

December 14, 2022 CVE published
November 3, 2025 Record updated