Advisory

GHSA-j4fx-xxwh-2485

Also known as: CVE-2026-8657

Summary

jsondiffpatch patch APIs are vulnerable to prototype pollution

Details

Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Prototype Pollution via the jsondiffpatch.patch() and jsondiffpatch/formatters/jsonpatch.patch() APIs. An attacker can perform prototype pollution by supplying crafted delta or JSON Patch documents, as attacker-controlled property names and path segments are used to traverse and modify objects without restricting access to special properties like __proto__ or constructor.prototype, allowing modification of Object.prototype.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-16 06:30 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

jsondiffpatch

npm · All systems

Affected

  • introduced 0, fixed 0.7.6 (semver)

Fixed versions

0.7.6

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