-
CVSS Score
-Basic Information
CVE ID
-
GHSA ID
-
EPSS Score
-
CWE
-
Published
-
Updated
-
KEV Status
-
Technology
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| sanitize | rubygems | >= 5.0.0, < 6.0.1 | 6.0.1 |
The vulnerability stems from the fact that the CleanElement transformer (in clean_element.rb) did not account for the parsing discrepancy between Nokogiri (scripting-disabled mode) and browsers (scripting-enabled mode). The commit diff shows the addition of explicit noscript handling to forcibly remove these elements, indicating that the call method in this transformer was the point of failure. The tests added in test_clean_element.rb and test_malicious_html.rb confirm that allowing noscript in configs previously caused vulnerabilities, and the fix explicitly addresses this in the transformer.
Ongoing coverage of React2Shell