striptags
Affected
- introduced
0, fixed3.2.0(semver)
Fixed versions
3.2.0
Fix
- Fixed version
3.2.0npm install [email protected]
Advisory
Also known as: CVE-2021-32696
Passing in a non-string 'html' argument can lead to unsanitized output
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.
Medium Basis: The source's own band: MODERATE
0, fixed 3.2.0 (semver)3.2.0
3.2.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0