loofah is vulnerable to Cross-site Scripting (XSS)
47
Medium Risk
Affected versions of loofah are vulnerable to Cross-site Scripting (XSS) because the HTML5 sanitizer only restricted the xlink:href attribute on certain SVG elements to local, same-document references. Browsers also accept a plain href attribute as an SVG 2 alternative, but Loofah did not apply the same restriction, allowing elements such as <use> and <feImage> to reference arbitrary external documents. That can lead to rendering external SVG content (including scripts in same-origin cases) or loading external images for tracking when user-supplied SVG is sanitized with the default allowlist.
You are affected if you are using a version that falls within the vulnerable range and your application sanitizes user-supplied SVG (directly or as part of HTML) with Loofah's default allowlist.
loofah is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 2.25.1.
Upgrade the loofah library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant