A type-confusion vulnerability can cause striptags to concatenate unsanitized strings when an array-like object is passed in as the html parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function.
XSS
3.2.0
Ensure that the html parameter is a string before calling the function.
{
"cwe_ids": [
"CWE-241",
"CWE-79",
"CWE-843"
],
"github_reviewed": true,
"github_reviewed_at": "2021-06-18T19:31:21Z",
"nvd_published_at": "2021-06-18T20:15:00Z",
"severity": "MODERATE"
}