{"id":"CVE-2026-77413","published":"2026-08-21T20:47:08Z","modified":"2026-08-24T19:42:37Z","title":"JSONata: Arbitrary Code Execution via crafted JSONata expressions","vendor":"jsonata-js","product":"jsonata","tier":"tail","description":{"text":"JSONata is a JSON query and transformation language. Prior to 1.8.8 and 2.2.0, the src/functions.js lookup function lacked an Object.prototype.hasOwnProperty check and allowed crafted expressions to access inherited prototype members. An attacker able to supply an expression could use inherited prototype setters and getters, constructor access, valueOf, and process.getBuiltinModule to reach the child_process module and execute arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00719,"percentile":0.54793,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jsonata-js/jsonata/pull/794","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":10.96},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"jsonata-js","affectedVersions":[{"vendor":"jsonata-js","product":"jsonata","versions":["< 2.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-24T19:42:13.845372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsonata","vulnerableRanges":["<1.8.8",">=2.0.0, <2.2.0"],"patched":["1.8.8","2.2.0"],"from":["GHSA-8gq3-vp5j-2grp"],"provenance":"source"}],"summary":{"text":"A flaw in the src/functions.js lookup function of the jsonata JSON query and transformation library (jsonata-js) lacks a hasOwnProperty check, letting crafted expressions reach inherited prototype members. An attacker who can supply a JSONata expression over the network, without authentication or user interaction, can use prototype access to reach the child_process module and run arbitrary code with the privileges of the host process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:59Z"},"euvd":{"id":"EUVD-2026-64155","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27307","published":"2024-03-06","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-52746","published":"2026-07-17","fixed":"2.2.0","kev":false},{"cve":"CVE-2026-77413","published":"2026-08-21","fixed":"2.2.0","kev":false},{"cve":"CVE-2026-12208","published":"2026-06-15","fixed":"2.2.1","kev":false},{"cve":"CVE-2026-77414","published":"2026-08-21","fixed":"2.2.1","kev":false,"link":{"from":"CVE-2026-77413","to":"CVE-2026-77414","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jsonata","fromFixed":"2.2.0","toFixed":"2.2.1","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/datetime.js","src/functions.js","src/jsonata.js"],"commits":["https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e","https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d","https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2","https://github.com/jsonata-js/jsonata/commit/c41ef185136a7b96ca1049c7745a7503b82193de"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.3,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-77415","published":"2026-08-21","fixed":"2.2.1","kev":false,"link":{"from":"CVE-2026-77413","to":"CVE-2026-77415","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jsonata","fromFixed":"2.2.0","toFixed":"2.2.1","daysApart":0}]}}],"package":"npm:jsonata"}}