CVE-2020-7766

HIGH

json-ptr < 2.0.0 - Prototype Pollution via Force Flag in Set Operation

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-JSONPTR-1016939
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038396

Scores

CVSS v3 7.3
EPSS 0.0188
EPSS Percentile 76.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Details

CWE
CWE-1321
Status published
Products (2)
json-ptr_project/json-ptr < 2.0.0
npm/json-ptr 0 - 2.1.0npm
Published Nov 10, 2020
Tracked Since Feb 18, 2026