CVE-2026-52746: jsonata Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-86vw-mfpg-wwv9
CVSS 7.5
CWE-1333
Published
Advisory Summary

CVE-2026-52746 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting jsonata libraries in the npm ecosystem. The issue involves malicious inputs to "$tomillis" function can cause resource exhaustion. Remediation is available by upgrading affected packages to version 2.2.0, 1.8.9.

CVE-2026-52746 at a Glance

CVE Identifier CVE-2026-52746
GHSA Identifier GHSA-86vw-mfpg-wwv9
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product jsonata
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-52746

To remediate this vulnerability, upgrade all affected jsonata dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

jsonata fixed: 2.2.0
npm install jsonata@2.2.0
jsonata fixed: 1.8.9
npm install jsonata@1.8.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls jsonata

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-52746, inspect your project dependencies using npm:

npm ls jsonata

Analyze the terminal output to locate any version of jsonata in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.0), your application is affected.

Note: The npm ls jsonata command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In jsonata, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Before JSONata `2.2.0` and `1.8.9`, it is possible to craft non-matching inputs to the [$toMillis](https://docs.jsonata.org/date-time-functions#tomillis) function that cause superlinear backtracking in the ISO-8601 validation regex. This may lead to denial of service in applications that evaluate user-provided JSONata expressions. ### Patches This issue has been addressed in JSONata version 2.2.0 or later, and 1.8.9 or later on v1, via fixes that include https://github.com/jsonata-js/jsonata/pull/782 and https://github.com/jsonata-js/jsonata/pull/793. Applications that evaluate user-provided expressions should update ASAP to prevent exploitation. ### References https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0 https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9 ### Credit Thank you to Doruk Tan Öztürk for disclosing this issue.

CVE-2026-52746 Affected jsonata Versions

2 component(s)
Fixed Versions:
2.2.01.8.9
Product / Package Ecosystem Affected Versions Fixed Version
jsonata
npm
≥ 2.0.0
< 2.2.0
2.2.0
jsonata
npm
< 1.8.9
1.8.9

References

Frequently Asked Questions

What is CVE-2026-52746?
CVE-2026-52746 is a security vulnerability in jsonata involving Malicious inputs to "$toMillis" function can cause resource exhaustion under CWE-1333: Inefficient Regular Expression Complexity.
Which jsonata versions are affected?
Affected versions include releases prior to 2.2.0, 1.8.9 across affected packages: jsonata.
What version fixes CVE-2026-52746?
Upgrading to 2.2.0, 1.8.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsonata affected?
Yes, jsonata is affected in releases prior to 2.2.0, 1.8.9. Upgrade your dependency to 2.2.0, 1.8.9 or later.
What is the CVSS score of CVE-2026-52746?
CVE-2026-52746 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-52746?
CVE-2026-52746 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2026-52746?
Run the dependency tree command: 'npm ls jsonata'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-86vw-mfpg-wwv9",
  "modified" : "2026-08-03T20:49:57Z",
  "published" : "2026-07-02T20:13:55Z",
  "aliases" : [ "CVE-2026-52746" ],
  "summary" : "jsonata: Malicious inputs to \"$toMillis\" function can cause resource exhaustion",
  "details" : "### Impact\nBefore JSONata `2.2.0` and `1.8.9`, it is possible to craft non-matching inputs to the [$toMillis](https://docs.jsonata.org/date-time-functions#tomillis) function that cause superlinear backtracking in the ISO-8601 validation regex. This may lead to denial of service in applications that evaluate user-provided JSONata expressions.\n\n### Patches\nThis issue has been addressed in JSONata version 2.2.0 or later, and 1.8.9 or later on v1, via fixes that include https://github.com/jsonata-js/jsonata/pull/782 and https://github.com/jsonata-js/jsonata/pull/793. Applications that evaluate user-provided expressions should update ASAP to prevent exploitation.\n\n### References\nhttps://github.com/jsonata-js/jsonata/releases/tag/v2.2.0\nhttps://github.com/jsonata-js/jsonata/releases/tag/v1.8.9\n\n### Credit\nThank you to Doruk Tan Öztürk for disclosing this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jsonata"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "jsonata"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-52746"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/pull/782"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/pull/793"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jsonata-js/jsonata"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T20:13:55Z",
    "nvd_published_at" : "2026-07-17T19:17:16Z"
  }
}