Vulnerability library
Security checkNovember 29, 2023

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmurijs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 1.19.11
  • Patched version(s): 1.19.11

References

Could your website be exposed too?

SmartScanner can check your website for Incorrect protocol extraction via \r, \n and \t characters and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 29, 2023