Improper authorization control for web services In url-parse
Description
url-parse Incorrectly parses URLs that include an '@' A specially crafted URL with an '@' sign but empty user info and no hostname, when parsed with url-parse, url-parse will return the incorrect href. In particular,
parse(\"http://@/127.0.0.1\")
Will return:
{ slashes: true, protocol: 'http:', hash: '', query: '', pathname: '/127.0.0.1', auth: '', host: '',...
If the 'hostname' or 'origin' attributes of the output from url-parse are used in security decisions and the final 'href' attribute of the output is then used to make a request, the decision may be incorrect.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
npm | 1.5.7 | ||
debian 14 | 1.5.7-1 | ||
debian 13 | 1.5.7-1 | ||
debian 11 | 1.5.3-1+deb11u3 | ||
debian 12 | 1.5.7-1 |
Aliases
1. 2. 3. 4. 5. 6. 7. 8.
References
1. 2.