All reports
Medium

Improper neutralization of data URIs may allow XSS in rails-html-sanitizer

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
>= 1.0.3, < 1.4.4
Fixed version
1.4.4

Exploitation

CVE-2022-23518

Probability of exploitation in the next 30 days: 0.94%

FIRST EPSS · 2026-11-22

Description

Summary

rails-html-sanitizer >= 1.0.3, < 1.4.4 is vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0.

Mitigation

Upgrade to rails-html-sanitizer >= 1.4.4.

Severity

The maintainers have evaluated this as Medium Severity 6.1.

References

Credit

This vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche).

Links