GitHub Advisory Database
GHSA-663r-x48j-fg8p
jsonata: Function Binding Prototype Pollution via hasOwnProperty Override
Details
A weakness has been identified in jsonata-js jsonata up to 2.2.0. The affected element is the function createFrame of the file src/jsonata.js of the component Function Binding Frame System. This manipulation causes improperly controlled modification of object prototype attributes. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | jsonata | All versions before 1.8.8 (fixed in 1.8.8) |
| npm | jsonata | From 2.0.0 before 2.2.1 (fixed in 2.2.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-12208
- https://github.com/jsonata-js/jsonata/pull/799
- https://github.com/jsonata-js/jsonata/pull/806
- https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2
- https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159
- https://github.com/OriginSecurityX/jsonata-hasownproperty-bypass
- https://github.com/jsonata-js/jsonata
- https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8
- https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1
- https://vuldb.com/cve/CVE-2026-12208
- https://vuldb.com/submit/832446
- https://vuldb.com/vuln/370850
- https://vuldb.com/vuln/370850/cti