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-2023-47322 Vulnerability in maven package org.silverpeas.core:silverpeas-core-web
CVE-2022-39353 Vulnerability in maven package org.webjars.npm:xmldom
CVE-2020-28496 Vulnerability in npm package three
CVE-2022-22984 Vulnerability in npm package snyk
CVE-2021-37137 Vulnerability in maven package io.netty:netty-codec