CVE-2026-52746: jsonata Remote Code Execution Vulnerability
HIGHCVE-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
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).
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.
npm install jsonata@2.2.0
npm install jsonata@1.8.9
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
CVE-2026-52746 Affected jsonata Versions
2 component(s)| 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?
Which jsonata versions are affected?
What version fixes CVE-2026-52746?
Is jsonata affected?
What is the CVSS score of CVE-2026-52746?
What CWE is associated with CVE-2026-52746?
How can I check npm dependencies for CVE-2026-52746?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}