CVE-2024-27307 json
JSONata expression can pollute the "Object" prototype
published 2024-03-04 2 y ago modified 2026-09-10 1 mo ago also GHSA-fqg8-vfv7-8fj8 , EUVD-2024-0922
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm jsonata 1.8.7, 2.0.4
- jsonatajs jsonata 1.8.7, 2.0.4
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-27307 updated cvss 8.6
jsonata: malicious expression can pollute the "Object" prototype
-
Red Hat Developer Hub 1.2 for RHEL 9 rhdh/rhdh-hub-rhel9 1.2-105fixed: vendor fix RHEA-2024:4071
-
Red Hat OpenShift Serverless jsonata Red Hat Developer Hub 1.2 for RHEL 9 rhdh/rhdh-operator-bundle 1.2-97, rhdh/rhdh-rhel9-operator 1.2-103not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.42% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | jsonata | >=1.4.0, <1.8.7 >=2.0.0, <2.0.4 |
1.8.7 2.0.4 |
Affected products
- jsonata-js jsonata
- jsonatajs jsonata
Classification
- Weakness
-
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
References
-
github.com
/jsonata-js/jsonata/commit/1d579dbe99c19fbe509f5ba2c6db7959b0d456d1
web, patch
-
github.com
/jsonata-js/jsonata/commit/335d38f6278e96c908b24183f1c9c90afc8ae00c
web, patch
-
github.com
/jsonata-js/jsonata/commit/c907b5e517bb718015fcbd993d742ba6202f2be2
web, patch
-
github.com
/jsonata-js/jsonata/security/advisories/GHSA-fqg8-vfv7-8fj8
web, technical-description, vendor-advisory
-
github.com
/jsonata-js/jsonata/releases/tag/v2.0.4
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-27307
advisory
-
github.com
/jsonata-js/jsonata
package
Sources
- CVE List CVE-2024-27307
- GitHub Advisory GHSA-fqg8-vfv7-8fj8
- NVD CVE-2024-27307
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.