Incorrect protocol extraction via \r, \n and \t characters
High severity
GitHub Reviewed
Published
Apr 6, 2022
to the GitHub Advisory Database
•
Updated Nov 29, 2023
Description
Published by the National Vulnerability Database
Apr 5, 2022
Published to the GitHub Advisory Database
Apr 6, 2022
Reviewed
Apr 7, 2022
Last updated
Nov 29, 2023
\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):
References