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.
References
More from rails
View All →CVE-2025-55193
Active Record logging vulnerable to ANSI escape injection
Low
2.7
CVE-2024-54133
Possible Content Security Policy bypass in Action Dispatch
Low
2.3
CVE-2024-53989
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Low
2.3
CVE-2024-53988
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Low
2.3
CVE-2024-53987
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Low
2.3
Affected Vendor
rails
View all reports →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