Vulnerabilities/

Passing in a non-string 'html' argument can lead to unsanitized output

Severity:
Medium

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.

Recommendation

Update the striptags package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
striptags
Anything's wrong? Let us know Last updated on February 01, 2023

This issue is available in SmartScanner Professional

See Pricing