| Package | Affected versions | Patched versions |
|---|---|---|
| sanitize | ≥ 3.0.0, < 4.6.3 | 4.6.3 |
| sanitize | ≤ 4.6.0 |
When Sanitize <= 4.6.2 is used in combination with libxml2 >= 2.9.2, a specially crafted HTML fragment can cause libxml2 to generate improperly escaped output, allowing non-whitelisted attributes to be used on whitelisted elements.
This can allow HTML and JavaScript injection, which could result in XSS if Sanitize's output is served to browsers.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free