Arbitrary Code Execution in json-ptr
High severity
GitHub Reviewed
Published
May 10, 2021
to the GitHub Advisory Database
•
Updated Sep 5, 2023
Description
Published by the National Vulnerability Database
Nov 10, 2020
Reviewed
Apr 19, 2021
Published to the GitHub Advisory Database
May 10, 2021
Last updated
Sep 5, 2023
npm
json-ptr
before 2.1.0 has an arbitrary code execution vulnerability. The issue occurs in the set operation when the force flag is set to true. The function recursively set the property in the target object, however it does not properly check the key being set, leading to a prototype pollution.References