VDB
Sign up
MEDIUM5.4

GHSA-g4xq-jx4w-4cjv

Loofah Cross-site Scripting vulnerability

Quick fix

GHSA-g4xq-jx4w-4cjv — loofah: upgrade to the fixed version with the command below.

bundle update loofah

Details

In the Loofah gem for Ruby, through version 2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. Users are advised to upgrade to version 2.2.3.

See https://github.com/flavorjones/loofah/issues/154 for more details.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/loofah
Introduced in: 0Fixed in: 2.2.3
Fixbundle update loofah

References