ADVISORIES

GitHub Advisory Database

GHSA-mcvf-2q2m-x72m

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

Moderate CVE-2022-23518

Details

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

Affected packages

EcosystemPackageAffected versions
RubyGemsrails-html-sanitizer
From 1.0.3 before 1.4.4 (fixed in 1.4.4)

References