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-2022-22984 Vulnerability in npm package snyk-sbt-plugin
CVE-2022-25766 Vulnerability in npm package ungit
CVE-2019-16762 Vulnerability in npm package slpjs
CVE-2022-36893 Vulnerability in maven package org.jenkins-ci.plugins:rpmsign-plugin
CVE-2022-24913 Vulnerability in maven package com.fasterxml.util:java-merge-sort