CVE-2026-8657: Jsondiffpatch Jsondiffpatch Patch APIs Are Vulnerable Vulnerability
HIGHCVE-2026-8657 is a HIGH (CVSS 8.2) jsondiffpatch patch apis are vulnerable vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Jsondiffpatch libraries in the npm ecosystem. The issue involves jsondiffpatch patch apis are vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 0.7.6.
CVE-2026-8657 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L).
How to Fix CVE-2026-8657
To remediate this vulnerability, upgrade all affected Jsondiffpatch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install jsondiffpatch@0.7.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls jsondiffpatch
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-8657, inspect your project dependencies using npm:
npm ls jsondiffpatch
Analyze the terminal output to locate any version of Jsondiffpatch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.6), your application is affected.
Note: The npm ls jsondiffpatch command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Jsondiffpatch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-8657 Affected Jsondiffpatch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsondiffpatch
|
npm |
< 0.7.6
|
0.7.6
|
References
Frequently Asked Questions
What is CVE-2026-8657?
Which Jsondiffpatch versions are affected?
What version fixes CVE-2026-8657?
Is jsondiffpatch affected?
What is the CVSS score of CVE-2026-8657?
What CWE is associated with CVE-2026-8657?
How can I check npm dependencies for CVE-2026-8657?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j4fx-xxwh-2485",
"modified" : "2026-08-31T22:10:51Z",
"published" : "2026-05-16T06:30:29Z",
"aliases" : [ "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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "jsondiffpatch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8657"
}, {
"type" : "WEB",
"url" : "https://github.com/benjamine/jsondiffpatch/commit/381c0125efab49f6f0dbc08317d01d55717672af"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/benjamine/jsondiffpatch"
}, {
"type" : "WEB",
"url" : "https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L107-L115"
}, {
"type" : "WEB",
"url" : "https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L82-L87"
}, {
"type" : "WEB",
"url" : "https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L146-L168"
}, {
"type" : "WEB",
"url" : "https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L171-L199"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16732792"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16322990"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-31T22:10:51Z",
"nvd_published_at" : "2026-05-16T06:16:18Z"
}
}