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


Severity

Recommended
0.0
medium
0
10

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

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-20039
  • published7 Sept 2012
  • disclosed7 Sept 2012
  • creditUnknown

Introduced: 7 Sep 2012

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

Overview

loofah is a library for manipulating and transforming HTML/XML documents and fragments. It's built on top of Nokogiri and libxml2.

Affected versions of this gem allow a remote cross-site scripting (XSS) attack. This is due to the Loofah::HTML::Document\#text function passing properly sanitized user-supplied input to the Loofah::XssFoliate and Loofah::Helpers\#strip_tags functions which convert input back to text.

Details

<>

CVSS Scores

version 3.1