Live threats

All CVEs / Json-ptr Project

CVE-2020-7766Json-ptr Project Json-ptr

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Nov 10, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Json-ptr.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm json-ptr < 2.1.0 2.1.0 npm install json-ptr@2.1.0

Per OSV / GitHub Advisories (GHSA-x5r6-x823-9848). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
json-ptr_projectjson-ptr< 2.0.0

Official sources

References

Links published by the sources. Open them with care.