GHSA-qc8j-m8j3-rjq6: Rails html sanitizer Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-qc8j-m8j3-rjq6 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Rails html sanitizer libraries in the RubyGems ecosystem. The issue involves moderate severity vulnerability that affects rails-html-sanitizer. Remediation is available by upgrading affected packages to version 1.0.3.

GHSA-qc8j-m8j3-rjq6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qc8j-m8j3-rjq6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rails html sanitizer
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-qc8j-m8j3-rjq6

To remediate this vulnerability, upgrade all affected Rails html sanitizer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rails-html-sanitizer fixed: 1.0.3
Upgrade rails-html-sanitizer to 1.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for rails-html-sanitizer

How to Check if You Are Affected

To determine whether your application is affected by GHSA-qc8j-m8j3-rjq6, inspect your project dependencies for Rails html sanitizer:

inspect dependencies for rails-html-sanitizer

Analyze the terminal output to locate any version of Rails html sanitizer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Rails html sanitizer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Withdrawn, accidental duplicate publish. Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via crafted tag attributes.

GHSA-qc8j-m8j3-rjq6 Affected Rails html sanitizer Versions

1 component(s)
Fixed Versions:
1.0.3
Product / Package Ecosystem Affected Versions Fixed Version
rails-html-sanitizer
RubyGems
< 1.0.3
1.0.3

References

Frequently Asked Questions

What is GHSA-qc8j-m8j3-rjq6?
GHSA-qc8j-m8j3-rjq6 is a security vulnerability in Rails html sanitizer involving Moderate severity vulnerability that affects rails-html-sanitizer under General Security Weakness.
Which Rails html sanitizer versions are affected?
Affected versions include releases prior to 1.0.3 across affected packages: rails-html-sanitizer.
What version fixes GHSA-qc8j-m8j3-rjq6?
Upgrading to 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rails-html-sanitizer affected?
Yes, rails-html-sanitizer is affected in releases prior to 1.0.3. Upgrade your dependency to 1.0.3 or later.
What CWE is associated with GHSA-qc8j-m8j3-rjq6?
GHSA-qc8j-m8j3-rjq6 is classified under General Security Weakness.
How can I check RubyGems dependencies for GHSA-qc8j-m8j3-rjq6?
Run the dependency tree command: 'inspect dependencies for rails-html-sanitizer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qc8j-m8j3-rjq6",
  "modified" : "2020-06-17T15:15:01Z",
  "published" : "2018-09-17T21:57:58Z",
  "withdrawn" : "2020-06-17T15:15:01Z",
  "aliases" : [ ],
  "summary" : "Moderate severity vulnerability that affects rails-html-sanitizer",
  "details" : "Withdrawn, accidental duplicate publish.\n\nCross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem before 1.0.3 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via crafted tag attributes.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rails-html-sanitizer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7578"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-qc8j-m8j3-rjq6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-17T15:15:01Z",
    "nvd_published_at" : null
  }
}