Cross-site Scripting (XSS) Affecting ruby-doc package, versions <0:2.4.5-90.el7cf


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.08% (36th 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-RHEL7-RUBYDOC-3489152
  • published26 Mar 2023
  • disclosed21 Mar 2018

Introduced: 21 Mar 2018

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

How to fix?

Upgrade RHEL:7 ruby-doc to version 0:2.4.5-90.el7cf or higher.
This issue was patched in RHSA-2019:0212.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-doc package and not the ruby-doc package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.

CVSS Scores

version 3.1