Description
This affects the package json8 before 1.0.3. The function adds in the target object the property specified in the path, however it does not properly check the key being set, leading to a prototype pollution.
Remediation
References
https://github.com/sonnyp/JSON8/commit/2e890261b66cbc54ae01d0c79c71b0fd18379e7e
https://snyk.io/vuln/SNYK-JS-JSON8-1017116
Related Vulnerabilities
CVE-2020-15250 Vulnerability in maven package junit:junit
CVE-2021-21293 Vulnerability in maven package org.http4s:blaze-core_2.12
CVE-2020-19697 Vulnerability in maven package org.webjars.bowergithub.pandao:editor.md
CVE-2019-0193 Vulnerability in maven package org.apache.solr:solr-dataimporthandler
CVE-2020-11111 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind