GitHub Advisoryadvisory · npm

GHSA-j4fx-xxwh-2485 jsondiffpatch patch APIs are vulnerable to prototype pollution

HIGH Published 2026-05-16 Modified 2026-08-31 Official page ↗
Aliases
CVE-2026-8657
Ecosystem
npm
Packages
jsondiffpatch
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Weaknesses
CWE-1321
Reviewed
2026-08-31

Affected packages

• npm jsondiffpatch: < 0.7.6 → fixed in 0.7.6

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.

Related

Alias · CVE (1)

  • CVE-2026-8657 Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Prototype Pollution via the jsondiffpatch.patch() and… vulnerability

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References