Vulnerabilities/

Incorrect protocol extraction via \r, \n and \t characters

Severity:
High

Description

\r, \n and \t characters in user-input URLs can potentially lead to incorrect protocol extraction when using npm package urijs prior to version 1.19.11.

This can lead to XSS when the module is used to prevent passing in malicious javascript: links into HTML or Javascript (see following example): `

Recommendation

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

References

Related Issues

Tags:
npm
urijs
Anything's wrong? Let us know Last updated on November 29, 2023

This issue is available in SmartScanner Professional

See Pricing