{"id":"CVE-2024-27307","published":"2024-03-06T19:24:16Z","modified":"2024-08-13T17:23:40Z","title":"JSONata expression can pollute the \"Object\" prototype","vendor":"jsonata-js","product":"jsonata","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01422,"percentile":0.73528,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-fqg8-vfv7-8fj8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jsonata-js/jsonata/commit/1d579dbe99c19fbe509f5ba2c6db7959b0d456d1","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/335d38f6278e96c908b24183f1c9c90afc8ae00c","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/commit/c907b5e517bb718015fcbd993d742ba6202f2be2","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":14.71},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"jsonata-js","affectedVersions":[{"vendor":"jsonata-js","product":"jsonata","versions":[">= 1.4.0, < 1.8.7",">= 2.0.0, < 2.0.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-03-07T20:11:04.720141Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsonata","vulnerableRanges":[">=1.4.0, <1.8.7",">=2.0.0, <2.0.4"],"patched":["1.8.7","2.0.4"],"from":["GHSA-fqg8-vfv7-8fj8"],"provenance":"source"}],"summary":{"text":"A prototype pollution flaw in the jsonata JSON query and transformation language (jsonata-js), affecting versions from 1.4.0 up to but excluding 1.8.7 and 2.0.4, allows a malicious expression to override properties on the Object constructor and its prototype. An attacker who can supply a JSONata expression to an application that evaluates user-provided expressions over the network, without authentication or user interaction, could trigger denial of service, remote code execution, or other unexpected behavior.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:50:13Z"},"euvd":{"id":"EUVD-2024-0922","exploited":false,"provenance":"source"}}