{"id":"CVE-2026-52746","aliases":["CVE-2026-52746","GHSA-86vw-mfpg-wwv9"],"related":[],"kind":"vulnerability","state":"published","title":"JSONata: Malicious inputs to \"$toMillis\" function can cause resource exhaustion","summary":"JSONata is a JSON query and transformation language. Prior to 2.2.0 and 1.8.9, malicious non-matching inputs to the $toMillis function can cause superlinear backtracking in the ISO-8601 validation regex, leading to denial of service in applications that evaluate user-provided JSONata expressions. This issue is fixed in version 2.2.0 and 1.8.9.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"JSONata is a JSON query and transformation language. Prior to 2.2.0 and 1.8.9, malicious non-matching inputs to the $toMillis function can cause superlinear backtracking in the ISO-8601 validation regex, leading to denial of service in applications that evaluate user-provided JSONata expressions. This issue is fixed in version 2.2.0 and 1.8.9.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"JSONata es un lenguaje de consulta y transformación de JSON. Antes de 2.2.0, entradas maliciosas no coincidentes a la función $toMillis pueden causar un retroceso superlineal en la expresión regular de validación ISO-8601, lo que lleva a una denegación de servicio en aplicaciones que evalúan expresiones JSONata proporcionadas por el usuario. Este problema se ha corregido en la versión 2.2.0.","source":"nvd"}],"published":"2026-07-02T20:13:55.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.2.0","status":"affected"},{"version":"< 1.8.9","status":"affected"}],"vendor":"jsonata-js","product":"jsonata","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.2.0"}],"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.9"}],"ecosystem":"npm","package":"jsonata","purl":"pkg:npm/jsonata","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.0"}],"vendor":"jsonata","product":"jsonata","cpe":"cpe:2.3:a:jsonata:jsonata:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/pull/782","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/pull/793","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52746","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jsonata-js/jsonata","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-17T19:44:39.303Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52746","url":"https://www.cve.org/CVERecord?id=CVE-2026-52746","licence":"CVE Terms of Use","modified":"2026-08-03T20:50:28.984Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-86vw-mfpg-wwv9","url":"https://github.com/advisories/GHSA-86vw-mfpg-wwv9","licence":"CC-BY-4.0","modified":"2026-08-03T21:00:22.986Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52746","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52746","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.513Z","epss":{"score":0.00374,"percentile":0.33395,"date":"2026-12-01T12:00:22.000Z"}}