CVE-2018-3774
nodejs-url-parse: incorrect hostname in url parsing
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Node.js Security WG (high), Ubuntu (medium).
Description
Incorrect parsing in url-parse <1.4.3 returns wrong hostname which leads to multiple vulnerabilities such as SSRF, Open Redirect, Bypass Authentication Protocol.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | url-parse | 1.4.3 |
| debian 11 | node-url-parse | 1.2.0-2 |
| debian 12 | node-url-parse | 1.2.0-2 |
| debian 13 | node-url-parse | 1.2.0-2 |
| debian 14 | node-url-parse | 1.2.0-2 |
| debian 9 | node-url-parse | 1.0.5-2+deb9u1 |
| echo | node-url-parse | 1.2.0-2 |
| npm::Node.js Ecosystem Security Working Group | url-parse | >=1.4.3 |
| ubuntu 16.04-ESM | node-url-parse | 1.0.5-2ubuntu0.1~esm2 |
| ubuntu 18.04 | node-url-parse | 1.2.0-1ubuntu0.1 |
| ubuntu 18.04-ESM | node-url-parse | 1.2.0-1ubuntu0.1 |
References
- http://0xahmed.ninja/
- https://access.redhat.com/security/cve/CVE-2018-3774
- https://github.com/unshiftio/url-parse
- https://github.com/unshiftio/url-parse/commit/209c296d302317268afbe19700a70c63ecbeb2d2
- https://github.com/unshiftio/url-parse/commit/53b1794e54d0711ceb52505e0f74145270570d5a
- https://github.com/unshiftio/url-parse/commit/d7b582ec1243e8024e60ac0b62d2569c939ef5de
- https://github.com/unshiftio/url-parse/compare/0.2.3...1.0.0
- https://hackerone.com/reports/384029