Skip to main content
← All vulnerabilities
CVE-2020-7766GHSA-X5R6-X823-9848

Prototype Pollution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a json-ptr

    All versions

  • json-ptrnpm

    fixed in 2.1.0

References 3

snyk.io

GitHub · flitbit/json-ptr