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-40810 Vulnerability in maven package org.opencrx:opencrx-core-models
CVE-2023-36480 Vulnerability in maven package com.aerospike:aerospike-client
CVE-2018-14380 Vulnerability in npm package graylog-web-interface
CVE-2022-41878 Vulnerability in npm package parse-server
CVE-2022-29567 Vulnerability in maven package com.vaadin:vaadin-grid-flow