Cross-site Scripting (XSS) Affecting loofah package, versions <2.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-LOOFAH-22023
  • published21 Mar 2018
  • disclosed15 Mar 2018
  • creditShopify Application Security Team

Introduced: 15 Mar 2018

CVE-2018-8048  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Loofah to version 2.2.1 or higher.

Overview

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments.

Affected versions fo this package are vulnerable to Cross-site Scripting (XSS) attacks. It allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments.

The vulnerability is possible only when the following conditions are met:

  • when running on MRI or RBX,
  • in combination with libxml2 >= 2.9.2.

Note : JRuby users are not affected.

Details

<>

References

CVSS Scores

version 3.1