All reports
High

Arbitrary Code Execution in json-ptr

Affected versions

Affected versions
< 2.1.0
Fixed version
2.1.0

Exploitation

CVE-2020-7766

Probability of exploitation in the next 30 days: 1.90%

FIRST EPSS · 2026-11-23

Description

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.

Links

Credits

  • tdunlap607