{"id":"CVE-2026-77414","published":"2026-08-21T20:51:43Z","modified":"2026-08-26T17:42:09Z","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.1, the src/jsonata.js environment.lookup function used a bypassable hasOwnProperty check. Crafted expressions could use $hasOwnProperty, $spread, $string, prototype access, and $constructor to reach the object prototype and invoke process.getBuiltinModule with child_process, executing arbitrary code with the privileges of the host process. This issue is fixed in versions 1.8.8 and 2.2.1.","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.0057,"percentile":0.48087,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jsonata-js/jsonata/pull/799","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2","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.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":9.62},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"jsonata-js","affectedVersions":[{"vendor":"jsonata-js","product":"jsonata","versions":["< 1.8.8",">= 2.0.0, < 2.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-26T17:41:27.109059Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsonata","vulnerableRanges":[">=2.0.0, <2.2.1","<1.8.8"],"patched":["2.2.1","1.8.8"],"from":["GHSA-2943-5xfg-gq5f"],"provenance":"source"}],"summary":{"text":"The flaw is in the environment.lookup function of the JSONata query and transformation language (product jsonata, from jsonata-js), where a bypassable hasOwnProperty check lets crafted expressions reach the object prototype. An attacker who can supply a JSONata expression over the network, requiring no authentication or user interaction, can use this to invoke process.getBuiltinModule with child_process and execute arbitrary code with the privileges of the host process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:36Z"},"euvd":{"id":"EUVD-2026-64083","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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,"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-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},{"cve":"CVE-2026-77415","published":"2026-08-21","fixed":"2.2.1","kev":false}],"package":"npm:jsonata"}}