CVE-2024-27307Jsonata
Critical 9.8 No auth needed
Follow: this CVE · Jsonata · Jsonata We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.1% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Mar 6, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Jsonata.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | jsonata |
≥ 1.4.0 < 1.8.7 |
1.8.7 |
npm install jsonata@1.8.7 |
| npm | jsonata |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
npm install jsonata@2.0.4 |
Per OSV / GitHub Advisories (GHSA-fqg8-vfv7-8fj8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| jsonata | jsonata | ≥ 1.4.0 < 1.8.7 |
| jsonata | jsonata | ≥ 2.0.0 < 2.0.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Product Release Notes
- github.com Technical Description Vendor Advisory