Advisory

GHSA-mcvf-2q2m-x72m

Also known as: CVE-2022-23518

Summary

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

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-12-13 17:45 UTC
Modified
2025-11-04 17:04 UTC

Affected packages and fixes

rails-html-sanitizer

RubyGems · All systems

Affected

  • introduced 1.0.3, fixed 1.4.4 (ecosystem)

Fixed versions

1.4.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences