GHSA-g694-m8vq-gv9h

Suggest an improvement
Source
https://github.com/advisories/GHSA-g694-m8vq-gv9h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-g694-m8vq-gv9h/GHSA-g694-m8vq-gv9h.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g694-m8vq-gv9h
Aliases
Published
2022-04-05T00:00:17Z
Modified
2023-11-01T04:57:19Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
URL Confusion When Scheme Not Supplied in medialize/uri.js
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-115",
        "CWE-601"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-04-05T18:34:38Z",
    "nvd_published_at":  "2022-04-04T20:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / urijs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.19.11

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-g694-m8vq-gv9h/GHSA-g694-m8vq-gv9h.json"