{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-77415",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-08-20T19:55:27.024Z",
        "datePublished": "2026-08-21T21:01:09.203Z",
        "dateUpdated": "2026-08-21T21:01:09.203Z"
    },
    "containers": {
        "cna": {
            "title": "JSONata: Arbitrary Code Execution via crafted JSONata expressions",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "lang": "en",
                            "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 9.3,
                        "baseSeverity": "CRITICAL",
                        "vectorString": "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",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/jsonata-js/jsonata/security/advisories/GHSA-66mm-25pp-rfff",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/security/advisories/GHSA-66mm-25pp-rfff"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/pull/799",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/pull/799"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/pull/800",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/pull/800"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/pull/802",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/pull/802"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/commit/47c0e58542202c705726663166dbee5fcae47d06",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/commit/47c0e58542202c705726663166dbee5fcae47d06"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/commit/4b217d514376e30cba278941298d7ba97c4a6c6e"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/commit/59e25144fc3b7125f6befd71b8a6e14e1fa610d2"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/commit/f09df8416eab8ff44926fc6527c80fb8701de159"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/commit/f174348c7fa30f271b63ddedf0767e814004bc4d",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/commit/f174348c7fa30f271b63ddedf0767e814004bc4d"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/releases/tag/v1.8.8"
                },
                {
                    "name": "https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/jsonata-js/jsonata/releases/tag/v2.2.1"
                }
            ],
            "affected": [
                {
                    "vendor": "jsonata-js",
                    "product": "jsonata",
                    "versions": [
                        {
                            "version": "< 1.8.8",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.0.0, < 2.2.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-08-21T21:01:09.203Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-66mm-25pp-rfff",
                "discovery": "UNKNOWN"
            }
        }
    }
}