Improper Input Validation
The apply 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.
The apply 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.