PT-2021-3417 · Striptags · Striptags
Erik-Krogh
·
Published
2021-06-18
·
Updated
2021-06-24
·
CVE-2021-32696
CVSS v2.0
5.0
Medium
| Vector | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
striptags versions prior to 3.2.0
Description
A type-confusion issue can cause striptags to concatenate unsanitized strings when an array-like object is passed in as the
html parameter. This can be exploited by an attacker who can control the input shape, for example, if query parameters are directly passed into the function, leading to cross-site scripting (XSS) attacks.Recommendations
For versions prior to 3.2.0, update to version 3.2.0 to resolve the issue.
As a temporary workaround, ensure that the
html parameter is a string before calling the function.Fix
Type Confusion
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Striptags