Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2018-3741

6.1 · MEDIUM
Published Mar 30, 2018 rubyonrails CWE-79

Overview

CVE-2018-3741 is a medium-severity vulnerability affecting rubyonrails html_sanitizer. It was published on March 30, 2018 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from rubyonrails. Update html_sanitizer to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
rubyonrails html_sanitizer 0 Affected

Frequently Asked Questions

What is CVE-2018-3741?

CVE-2018-3741 is a medium-severity vulnerability affecting rubyonrails html_sanitizer. It was published on March 30, 2018 and has a CVSS 3.1 base score of 6.1 (MEDIUM).

How severe is CVE-2018-3741?

This vulnerability has a CVSS 3.1 base score of 6.1, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2018-3741?

Check the references section for vendor advisories and patches from rubyonrails. Update html_sanitizer to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2018-3741?

CyberStrike's AI-powered security agents can automatically detect CVE-2018-3741 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.