CVE-2019-20149
nodejs-kind-of: ctorName in index.js allows external user input to overwrite certain internal attributes
Overview
Description
ctorName in index.js in kind-of v6.0.2 allows external user input to overwrite certain internal attributes via a conflicting name, as demonstrated by 'constructor': {'name':'Symbol'}. Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-668
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | kind-of | >=6.0.0, <6.0.3 | 6.0.3 |
Open a package to see all its vulnerabilities.
Operating systems · 13 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | js-jquery | 0:3.5.0-4.azl3 |
Red Hat 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | rh-nodejs10-nodejs-nodemon | eol |
| 7 | kibana | wont fix |
| 8 | servicemesh-grafana +2 | affected |
| 8 (nodejs:10) | nodejs-nodemon | eol |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | node-kind-of | 6.0.2+dfsg-1+deb10u1 |
| 11 | node-kind-of | 6.0.3+dfsg-1 |
| 12 | node-kind-of | 6.0.3+dfsg-1 |
| 13 | node-kind-of | 6.0.3+dfsg-1 |
| 14 | node-kind-of | 6.0.3+dfsg-1 |
| 9 | node-kind-of | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-kind-of | 6.0.3+dfsg-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | node-kind-of | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-20149
- github.com https://github.com/jonschlinkert/kind-of/commit/1df992ce6d5a1292048e5fe9c52c5382f941ee0b
- github.com https://github.com/jonschlinkert/kind-of/issues/30
- github.com https://github.com/jonschlinkert/kind-of/pull/31
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-20149
- snyk.io https://snyk.io/vuln/SNYK-JS-KINDOF-537849
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-20149
- www.npmjs.com https://www.npmjs.com/advisories/1490
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.