Advisory

GHSA-228g-948r-83gx

Also known as: CVE-2022-23515

Summary

Improper neutralization of data URIs may allow XSS in Loofah

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

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

Affected packages and fixes

loofah

RubyGems · All systems

Affected

  • introduced 2.1.0, fixed 2.19.1 (ecosystem)

Fixed versions

2.19.1

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