rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2022-23518 - Medium Severity Vulnerability
Vulnerable Library - rails-html-sanitizer-1.3.0.gem
HTML sanitization for Rails applications
Library home page: https://rubygems.org/gems/rails-html-sanitizer-1.3.0.gem
Dependency Hierarchy: - responders-3.0.0.gem (Root Library) - actionpack-6.0.0.gem - :x: **rails-html-sanitizer-1.3.0.gem** (Vulnerable Library)
Found in HEAD commit: ef980180214dbeaba07dbfcc87752fa216d3a34f
Found in base branch: master
Vulnerability Details
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
Publish Date: 2022-12-14
URL: CVE-2022-23518
CVSS 3 Score Details (6.1)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - 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://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-mcvf-2q2m-x72m
Release Date: 2022-12-14
Fix Resolution: rails-html-sanitizer - 1.4.4