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.2.0.gem
HTML sanitization for Rails applications
Library home page: https://rubygems.org/gems/rails-html-sanitizer-1.2.0.gem
Dependency Hierarchy: - rails-5.2.3.gem (Root Library) - actionview-5.2.3.gem - :x: **rails-html-sanitizer-1.2.0.gem** (Vulnerable Library)
Found in HEAD commit: 0cc6845b68c9648d6cc64293d4276d9e63d3123e
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
Step up your Open Source Security Game with Mend here