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-2021-23561 Vulnerability in npm package comb
CVE-2020-7021 Vulnerability in maven package org.elasticsearch:elasticsearch
CVE-2022-25845 Vulnerability in maven package com.alibaba:fastjson
CVE-2020-8823 Vulnerability in npm package sockjs
CVE-2020-5428 Vulnerability in maven package org.springframework.cloud:spring-cloud-task-core