GHSA-j4fx-xxwh-2485

Suggest an improvement
Source
https://github.com/advisories/GHSA-j4fx-xxwh-2485
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j4fx-xxwh-2485/GHSA-j4fx-xxwh-2485.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j4fx-xxwh-2485
Aliases
Downstream
CGA (1)
MINI (8)
Published
2026-05-16T06:30:29Z
Modified
2026-09-10T03:51:05Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L CVSS Calculator
  • 7.8 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-1321"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-08-31T22:10:51Z",
    "nvd_published_at":  "2026-05-16T06:16:18Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / jsondiffpatch

Package

Name
jsondiffpatch
View open source insights on deps.dev
Purl
pkg:npm/jsondiffpatch

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.7.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-j4fx-xxwh-2485/GHSA-j4fx-xxwh-2485.json"