Skip to content

CVE-2020-7766 Prototype Pollution

CriticalCVSS 9.8 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known

Description

This affects all versions of package json-ptr. The issue occurs in the set operation (https://flitbit.github.io/json-ptr/classes/_src_pointer_.jsonpointer.htmlset) 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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
json-ptr project json-ptr < 2.0.0 2.0.0 Fixed
npm json-ptr(npm) < 2.1.0 2.1.0 Fixed

Affected products

ProductAffected versionsFixed in
npm json-ptr(npm) < 2.1.0 2.1.0
json-ptr project json-ptr < 2.0.0 2.0.0

References