Vulnerability library
Security checkJanuary 27, 2023

URL Confusion When Scheme Not Supplied in medialize/uri.js

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

Medium severitynpmurijs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Medialize is a Javascript URL mutation library. When parsing a URL without a scheme and with excessive slashes, like ///www.example.com, URI.js will parse the hostname as null and the path as /www.example.com. Such behaviour is different from that exhibited by browsers, which will parse ///www.example.com as http://www.example.com instead.

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 URL Confusion When Scheme Not Supplied in medialize/uri.js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023