Skip to content
OpenAdvisories
High · 8.2 CVE-2026-8657 EUVD-2026-30670GHSA-j4fx-xxwh-2485

jsondiffpatch patch APIs are vulnerable to prototype pollution

Published May 16, 2026 · Updated Aug 23, 2026 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— jsondiffpatch < 0.7.6 0.7.6
— org.webjars.npm:jsondiffpatch — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu-console 2.11.0-r33 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm jsondiffpatch < 0.7.6 0.7.6 GHSA-j4fx-xxwh-2485

References