CVE-2018-3774: Url parse Open Redirect Vulnerability
CRITICALCVE-2018-3774 is a CRITICAL (CVSS 10.0) open redirect vulnerability (CWE-425: Direct Request ('Forced Browsing')) affecting Url parse libraries in the npm ecosystem. The issue involves open redirect in url-parse. Remediation is available by upgrading affected packages to version 1.4.3.
CVE-2018-3774 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2018-3774
To remediate this vulnerability, upgrade all affected Url parse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install url-parse@1.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls url-parse
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-3774, inspect your project dependencies using npm:
npm ls url-parse
Analyze the terminal output to locate any version of Url parse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.3), your application is affected.
Note: The npm ls url-parse command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-425: Direct Request ('Forced Browsing'), where the web application does not adequately enforce appropriate authorization on all restricted urls, scripts, or files. In Url parse, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-3774 Affected Url parse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
url-parse
|
npm |
≥ 1.0.0
< 1.4.3
|
1.4.3
|
References
Frequently Asked Questions
What is CVE-2018-3774?
Which Url parse versions are affected?
What version fixes CVE-2018-3774?
Is url-parse affected?
What is the CVSS score of CVE-2018-3774?
What CWE is associated with CVE-2018-3774?
How can I check npm dependencies for CVE-2018-3774?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pv4c-p2j5-38j4",
"modified" : "2026-01-23T20:10:56Z",
"published" : "2018-08-13T15:02:15Z",
"aliases" : [ "CVE-2018-3774" ],
"summary" : "Open Redirect in url-parse",
"details" : "Versions of `url-parse` before 1.4.3 returns the wrong hostname which could lead to Open Redirect, Server Side Request Forgery (SSRF), or Bypass Authentication Protocol vulnerabilities.\n\n\n## Recommendation\n\nUpdate to version 1.4.3 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "url-parse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.4.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-3774"
}, {
"type" : "WEB",
"url" : "https://github.com/unshiftio/url-parse/commit/209c296d302317268afbe19700a70c63ecbeb2d2"
}, {
"type" : "WEB",
"url" : "https://github.com/unshiftio/url-parse/commit/53b1794e54d0711ceb52505e0f74145270570d5a"
}, {
"type" : "WEB",
"url" : "https://github.com/unshiftio/url-parse/commit/d7b582ec1243e8024e60ac0b62d2569c939ef5de"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/384029"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/unshiftio/url-parse"
}, {
"type" : "WEB",
"url" : "https://github.com/unshiftio/url-parse/compare/0.2.3...1.0.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-425" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:50:04Z",
"nvd_published_at" : null
}
}