{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27307","id":"CVE-2024-27307","title":"JSONata expression can pollute the \"Object\" prototype","description":"JSONata is a JSON query and transformation language. Starting in version 1.4.0 and prior to version 1.8.7 and 2.0.4, a malicious expression can use the transform operator to override properties on the `Object` constructor and prototype. This may lead to denial of service, remote code execution or other unexpected behavior in applications that evaluate user-provided JSONata expressions. This issue ","descriptionLong":"JSONata is a JSON query and transformation language. Starting in version 1.4.0 and prior to version 1.8.7 and 2.0.4, a malicious expression can use the transform operator to override properties on the `Object` constructor and prototype. This may lead to denial of service, remote code execution or other unexpected behavior in applications that evaluate user-provided JSONata expressions. This issue has been fixed in JSONata versions 1.8.7 and 2.0.4. Applications that evaluate user-provided expressions should update ASAP to prevent exploitation. As a workaround, one may apply the patch manually.","published":"2024-03-06T19:24:16.876Z","updated":"2026-10-28T02:30:22.343570626Z","reserved":"2024-02-22T18:08:38.876Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["jsonata-js jsonata"],"affectedProducts":[{"vendor":"jsonata-js","product":"jsonata","defaultStatus":null,"versions":[{"version":">= 1.4.0, < 1.8.7","status":"affected"},{"version":">= 2.0.0, < 2.0.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"jsonata","purl":"pkg:npm/jsonata","ranges":[">=1.4.0 <1.8.7",">=2.0.0 <2.0.4"],"fixed":["1.8.7","2.0.4"],"advisory":"GHSA-fqg8-vfv7-8fj8"}],"cwes":["CWE-1321"],"aliases":["GHSA-fqg8-vfv7-8fj8"],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-fqg8-vfv7-8fj8","tags":["x_refsource_CONFIRM","x_transferred","Technical Description","Vendor Advisory","advisory","web"]},{"url":"https://github.com/jsonata-js/jsonata/commit/1d579dbe99c19fbe509f5ba2c6db7959b0d456d1","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/jsonata-js/jsonata/commit/335d38f6278e96c908b24183f1c9c90afc8ae00c","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/jsonata-js/jsonata/commit/c907b5e517bb718015fcbd993d742ba6202f2be2","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.0.4","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27307.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27307","tags":["advisory"]},{"url":"https://github.com/jsonata-js/jsonata","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.01422,"epssPercentile":0.73442,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27307","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27307","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27307","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fqg8-vfv7-8fj8","ok":true,"note":"GHSA-fqg8-vfv7-8fj8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27307","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}