{"id":"GHSA-86vw-mfpg-wwv9","revision":"d30d06fe5eb94f43bc6b02df1bac426a","records":[{"revision":"d30d06fe5eb94f43bc6b02df1bac426a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-86vw-mfpg-wwv9","aliases":["CVE-2026-52746"],"title":"jsonata: Malicious inputs to \"$toMillis\" function can cause resource exhaustion","description":"### 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.","state":0,"publishedAt":"2026-07-02T20:13:55+00:00","modifiedAt":"2026-08-03T21:00:22.9867284+00:00","affected":[{"ecosystem":"npm","name":"jsonata","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.2.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"jsonata","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.8.9"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/jsonata-js/jsonata/security/advisories/GHSA-86vw-mfpg-wwv9","https://nvd.nist.gov/vuln/detail/CVE-2026-52746","https://github.com/jsonata-js/jsonata/pull/782","https://github.com/jsonata-js/jsonata/pull/793","https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686","https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b","https://github.com/jsonata-js/jsonata","https://github.com/jsonata-js/jsonata/releases/tag/v1.8.9","https://github.com/jsonata-js/jsonata/releases/tag/v2.2.0"],"sourceUrl":"https://github.com/advisories/GHSA-86vw-mfpg-wwv9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-86vw-mfpg-wwv9","identifiers":["GHSA-86vw-mfpg-wwv9","CVE-2026-52746"]},"retained":false,"historicalAffected":[]}],"coverage":[]}