GHSA-qc8j-m8j3-rjq6: Rails html sanitizer Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-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
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.
Upgrade rails-html-sanitizer to 1.0.3
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
GHSA-qc8j-m8j3-rjq6 Affected Rails html sanitizer Versions
1 component(s)| 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?
Which Rails html sanitizer versions are affected?
What version fixes GHSA-qc8j-m8j3-rjq6?
Is rails-html-sanitizer affected?
What CWE is associated with GHSA-qc8j-m8j3-rjq6?
How can I check RubyGems dependencies for GHSA-qc8j-m8j3-rjq6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}