Loofah HTML and XSS injection vulnerability


2017-04-01 19:10
2017-01-05 20:14


Loofah Gem for Ruby contains a flaw that allows a remote cross-site
scripting (XSS) attack. This flaw exists because the
Loofah::HTML::Document\#text function passes properly sanitized
user-supplied input to the Loofah::XssFoliate and
Loofah::Helpers\#strip_tags functions which convert input back to
text. This may allow an attacker to create a specially crafted
request that would execute arbitrary script code in a user's browser
within the trust relationship between their browser and the server.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
loofah >= 0.4.6 None