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.
Remediation
References
https://github.com/jonschlinkert/kind-of/issues/30
https://github.com/jonschlinkert/kind-of/pull/31
Related Vulnerabilities
CVE-2022-25345 Vulnerability in npm package @discordjs/opus
CVE-2020-8137 Vulnerability in npm package uppy
CVE-2019-5458 Vulnerability in npm package http-file-server
CVE-2017-16008 Vulnerability in maven package org.webjars.npm:i18next
CVE-2022-36907 Vulnerability in maven package org.jenkins-ci.plugins:openshift-deployer