CVE-2016-1202: Electron High Severity Vulnerability That Affects Vulnerability
HIGHCVE-2016-1202 is a HIGH (CVSS 7.8) high severity vulnerability that affects vulnerability (CWE-426: Untrusted Search Path) affecting Electron libraries in the npm ecosystem. The issue involves high severity vulnerability that affects electron. Remediation is available by upgrading affected packages to version 0.33.5.
CVE-2016-1202 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-1202
To remediate this vulnerability, upgrade all affected Electron 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 electron@0.33.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls electron
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2016-1202, inspect your project dependencies using npm:
npm ls electron
Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.33.5), your application is affected.
Note: The npm ls electron 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-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Electron, 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-2016-1202 Affected Electron Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
electron
|
npm |
< 0.33.5
|
0.33.5
|
References
Frequently Asked Questions
What is CVE-2016-1202?
Which Electron versions are affected?
What version fixes CVE-2016-1202?
Is electron affected?
What is the CVSS score of CVE-2016-1202?
What CWE is associated with CVE-2016-1202?
How can I check npm dependencies for CVE-2016-1202?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gvcj-pfq2-wxj7",
"modified" : "2021-09-13T12:46:47Z",
"published" : "2017-10-24T18:33:35Z",
"aliases" : [ "CVE-2016-1202" ],
"summary" : "High severity vulnerability that affects electron",
"details" : "Untrusted search path vulnerability in Atom Electron before 0.33.5 allows local users to gain privileges via a Trojan horse Node.js module in a parent directory of a directory named on a require line.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.33.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-1202"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/pull/2976"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/9a2e2b365d061ec10cd861391fd5b1344af7194d"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-gvcj-pfq2-wxj7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/electron/electron"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN00324715/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2016-000054"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-426" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:38:05Z",
"nvd_published_at" : null
}
}