CVE-2021-32696
Passing in a non-string 'html' argument can lead to unsanitized output
3.7
LOW
CVSS 3.1
EPSS 0.29%
Description
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. ### Impact XSS ### Patches `3.2.0` ### Workarounds Ensure that the `html` parameter is a string before calling the function.
How to fix CVE-2021-32696
To remediate CVE-2021-32696, upgrade the affected package to a fixed version below.
- —upgrade to 3.2.0 or later
Is CVE-2021-32696 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.2.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |