RubySec

Providing security resources for the Ruby community

CVE-2022-23515 (loofah): Improper neutralization of data URIs may allow XSS in Loofah

ADVISORIES

GEM

loofah

SEVERITY

CVSS v3.x: 6.1 (Medium)

UNAFFECTED VERSIONS

  • < 2.1.0

PATCHED VERSIONS

  • >= 2.19.1

DESCRIPTION

Summary

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

Mitigation

Upgrade to Loofah &gt;= 2.19.1.

RELATED