CVE-2020-7678 json
Arbitrary Code Execution
published 4y ago modified 4mo ago also GHSA-pc62-cq5x-3j5g , EUVD-2022-6382
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
This affects all versions of package node-import. The "params" argument of module function can be controlled by users without any sanitization.b. This is then provided to the “eval” function located in line 79 in the index file "index.js".
Is CVE-2020-7678 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-NODEIMPORT-571691 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:P/RL:U/RC:C |
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | node-import | <=0.9.2 |
no fix listed |
Affected products
- n/a node-import
References
-
security.snyk.io
/vuln/SNYK-JS-NODEIMPORT-571691
web, exploit, third-party-advisory
-
github.com
/mahdaen/node-import/blob/master/index.js%23L79
web, broken-link, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7678
advisory
-
github.com
/mahdaen/node-import
package
Sources
- CVE List CVE-2020-7678
- GitHub Advisory GHSA-pc62-cq5x-3j5g
- NVD CVE-2020-7678
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.