Advisory

GHSA-x5r6-x823-9848

Also known as: CVE-2020-7766

Summary

Arbitrary Code Execution in json-ptr

Details

npm json-ptr before 2.1.0 has an arbitrary code execution vulnerability. The issue occurs in the set operation 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-10 19:15 UTC
Modified
2025-01-14 08:57 UTC

Affected packages and fixes

json-ptr

npm · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences