# CVE-2024-27307: JSONata expression can pollute the "Object" prototype

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.10%, higher than 89% of CVEs (2026-11-30)
- Published: 2024-03-04T20:43:12.000Z
- Modified: 2026-09-10T03:50:10.429Z
- Also known as: GHSA-fqg8-vfv7-8fj8
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- jsonata-js jsonata: >= 1.4.0, < 1.8.7; >= 2.0.0, < 2.0.4
- jsonatajs jsonata: from 1.4.0 before 1.8.7; from 2.0.0 before 2.0.4
- jsonata (npm): from 1.4.0 before 1.8.7; from 2.0.0 before 2.0.4
- jsonata jsonata: from 1.4.0 before 1.8.7; from 2.0.0 before 2.0.4

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/jsonata-js/jsonata/security/advisories/GHSA-fqg8-vfv7-8fj8> (technical-description, vendor-advisory, web)
- <https://github.com/jsonata-js/jsonata/commit/1d579dbe99c19fbe509f5ba2c6db7959b0d456d1> (patch, web)
- <https://github.com/jsonata-js/jsonata/commit/335d38f6278e96c908b24183f1c9c90afc8ae00c> (patch, web)
- <https://github.com/jsonata-js/jsonata/commit/c907b5e517bb718015fcbd993d742ba6202f2be2> (patch, web)
- <https://github.com/jsonata-js/jsonata/releases/tag/v2.0.4> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27307> (advisory)
- <https://github.com/jsonata-js/jsonata> (package)

## Sources

- CVE List: [CVE-2024-27307](https://www.cve.org/CVERecord?id=CVE-2024-27307), CVE Terms of Use, modified 2024-08-13
- GitHub Advisory Database: [GHSA-fqg8-vfv7-8fj8](https://github.com/advisories/GHSA-fqg8-vfv7-8fj8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27307](https://nvd.nist.gov/vuln/detail/CVE-2024-27307), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27307 · Whole record: https://cve.day/CVE-2024-27307.json · Rebuilt by cve.day 2026-11-25T22:58:37.312Z
