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.
{
"nvd_published_at": "2018-03-30T19:29:00Z",
"severity": "HIGH",
"github_reviewed": true,
"cwe_ids": [
"CWE-20",
"CWE-79"
],
"github_reviewed_at": "2020-06-16T21:22:33Z"
}