rails-html-sanitizer >= 1.0.3, < 1.4.4 is vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0.
Upgrade to rails-html-sanitizer >= 1.4.4.
The maintainers have evaluated this as Medium Severity 6.1.
This vulnerability was independently reported by Maciej Piechota (@haqpl) and Mrinmoy Das (@goromlagche).
| Score | Percentile |
|---|---|
| 0.27% | 50.48% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 6.1 | 3.1 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-mcvf-2q2m-x72m ↗ |
| CVE | CVE-2022-23518 ↗ |
| CWE id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| rubygems | rails-html-sanitizer | >= 1.0.3, < 1.4.4 | 1.4.4 | — |