All reports
Medium

Improper neutralization of data URIs may allow XSS in Loofah

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
RubyGemsloofah
Affected versions
>= 2.1.0, < 2.19.1
Fixed version
2.19.1

Exploitation

CVE-2022-23515

Probability of exploitation in the next 30 days: 0.86%

FIRST EPSS · 2026-11-18

Description

Summary

Loofah >= 2.1.0, < 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs.

Mitigation

Upgrade to Loofah >= 2.19.1.

Severity

The Loofah maintainers have evaluated this as Medium Severity 6.1.

References

Credit

This vulnerability was responsibly reported by Maciej Piechota (@haqpl).

Links