jonschlinkert / kind-of

Get the native JavaScript type of a value, fast. Used by superstruct, micromatch and many others!
https://github.com/jonschlnkert
MIT License
347 stars 38 forks source link

CVE-2019-20149 Vulnerability in kind-of 6.0.2 #32

Closed ashergarland closed 4 years ago

ashergarland commented 4 years ago

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.

Reference: https://nvd.nist.gov/vuln/detail/CVE-2019-20149

doowb commented 4 years ago

Duplicate of #30 and #31