GitHub Advisoryadvisory · npm

GHSA-g694-m8vq-gv9h URL Confusion When Scheme Not Supplied in medialize/uri.js

MEDIUM Published 2022-04-05 Modified 2022-04-15 Official page ↗
Aliases
CVE-2022-1233
Ecosystem
npm
Packages
urijs
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-115, CWE-601
Reviewed
2022-04-05

Affected packages

• npm urijs: < 1.19.11 → fixed in 1.19.11

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. For example, the following will cause a redirect to http://www.example.com: A fix was released in version 1.19.11.

Related

Alias · CVE (1)

  • CVE-2022-1233 URL Confusion When Scheme Not Supplied in GitHub repository medialize/uri.js prior to 1.19.11. vulnerability

Weakness · CWE (2)

  • CWE-115 Misinterpretation of Input weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References