GHSA-g694-m8vq-gv9h
URL Confusion When Scheme Not Supplied in medialize/uri.js
At a glance
- Published
- Updated
- CVE
- CVE-2022-1233
- CVSS_V3
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
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.
Affected packages
| Package | Versions |
|---|---|
| npm · urijs | introduced 0, fixed 1.19.11 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-1233 ADVISORY
- https://github.com/medialize/uri.js/commit/88805fd3da03bd7a5e60947adb49d182011f1277 WEB
- https://github.com/medialize/uri.js PACKAGE
- https://huntr.dev/bounties/228d5548-1109-49f8-8aee-91038e88371c WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |