Security mailing lists by PureSourceCode

CVE-2020-7766

CRITICAL 9.8CVSS 3.1

Arbitrary Code Execution in json-ptr

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.

Published
10 Nov 2020
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-1321CWE-400CWE-74
Also known as
GHSA-x5r6-x823-9848
Sources
NVDJSONOSV GHSA-x5r6-x823-9848JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD report@snyk.io (Secondary) CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD json-ptr_project json-ptr
cpe:2.3:a:json-ptr_project:json-ptr:*:*:*:*:*:*:*:*
< 2.0.0 2.0.0
OSV npm json-ptr < 2.1.0 2.1.0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 10 Nov 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.