Live threats

All CVEs / Jsonata

CVE-2024-27307Jsonata

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jsonata.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
jsonatajsonata≥ 1.4.0 < 1.8.7
jsonatajsonata≥ 2.0.0 < 2.0.4

Official sources

References

Links published by the sources. Open them with care.