{"id":"CVE-2026-77415","published":"2026-08-21T21:01:09Z","modified":"2026-08-25T16:55:27Z","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, crafted JSONata expressions could chain several object-integrity weaknesses to execute arbitrary code. The chain could overwrite $clone to mutate objects through evaluateTransformExpression, expose and deconstruct JSONata functions or lambdas through $merge.*, replace proc.arguments.forEach used by applyProcedure, and forge internal lambda state. These primitives allowed an attacker to reach prototype getters, prototype and constructor access, and process.getBuiltinModule with child_process, executing 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.00892,"percentile":0.60291,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-66mm-25pp-rfff","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jsonata-js/jsonata/pull/799","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/pull/800","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/pull/802","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/47c0e58542202c705726663166dbee5fcae47d06","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/59e25144fc3b7125f6befd71b8a6e14e1fa610d2","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/f174348c7fa30f271b63ddedf0767e814004bc4d","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":18.6,"factors":[{"name":"EPSS percentile","points":12.06},{"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-25T16:53:35.738767Z","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-66mm-25pp-rfff"],"provenance":"source"}],"summary":{"text":"A flaw in the jsonata library (vendor jsonata-js, product jsonata) lets crafted JSONata expressions chain several object-integrity weaknesses, including mutation of $clone, exposure of functions and lambdas via $merge, and replacement of proc.arguments.forEach used by applyProcedure. An attacker who can supply such an expression, with no authentication or user interaction required and reachable over the network, can execute arbitrary code with the privileges of the host process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:28Z"},"euvd":{"id":"EUVD-2026-64166","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-77413","published":"2026-08-21","fixed":"2.2.0","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}]}},{"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"}}