Advisory

GHSA-g694-m8vq-gv9h

Also known as: CVE-2022-1233

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-04-05 00:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

urijs

npm · All systems

Affected

  • introduced 0, fixed 1.19.11 (semver)

Fixed versions

1.19.11

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences