vicvega / chaltron

Template generator for rails application with bootstrap, devise...
MIT License
9 stars 2 forks source link

CVE-2019-15587 (Medium) detected in loofah-2.2.3.gem #43

Closed mend-bolt-for-github[bot] closed 4 years ago

mend-bolt-for-github[bot] commented 4 years ago

CVE-2019-15587 - Medium Severity Vulnerability

Vulnerable Library - loofah-2.2.3.gem

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments. It's built on top of Nokogiri and libxml2, so it's fast and has a nice API. Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML sanitizers, which are based on HTML5lib's whitelist, so it most likely won't make your codes less secure. (These statements have not been evaluated by Netexperts.) ActiveRecord extensions for sanitization are available in the [`loofah-activerecord` gem](https://github.com/flavorjones/loofah-activerecord).

Library home page: https://rubygems.org/gems/loofah-2.2.3.gem

Path to dependency file: /tmp/ws-scm/chaltron/Gemfile.lock

Path to vulnerable library: /var/lib/gems/2.5.0/cache/loofah-2.2.3.gem

Dependency Hierarchy: - rails-6.0.0.gem (Root Library) - sprockets-rails-3.2.1.gem - actionpack-6.0.0.gem - rails-html-sanitizer-1.2.0.gem - :x: **loofah-2.2.3.gem** (Vulnerable Library)

Found in HEAD commit: 91ff361e35949a7916f67e6c7d2adcea32599f05

Vulnerability Details

In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

Publish Date: 2019-10-22

URL: CVE-2019-15587

CVSS 3 Score Details (5.4)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-15587

Release Date: 2019-10-22

Fix Resolution: v2.3.1


Step up your Open Source Security Game with WhiteSource here

vicvega commented 4 years ago

fixed in 1046acbe3a9fc95a08fa1c56c73a31fa10e7a85b