{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:jsonata:jsonata:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.2.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8ee4476f8a228bfc7a62979ae0a9c13a4043cd03"
            },
            {
              "fixed": "80ba95d170f74e3f20f4f36b8b77d8c85cea7686"
            },
            {
              "fixed": "d6ffc17cb16a8e53c222205bd274624e919cce0b"
            },
            {
              "fixed": "006977bebeee9d156b5d8dd4fbf77550df39a8b1"
            }
          ],
          "repo": "https://github.com/jsonata-js/jsonata",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-86vw-mfpg-wwv9"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1333"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52746.json"
  },
  "details": "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.",
  "id": "CVE-2026-52746",
  "modified": "2026-08-12T03:51:24.930067796Z",
  "published": "2026-07-17T18:32:47.173Z",
  "references": [
    {
      "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"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52746.json"
    },
    {
      "type": "ADVISORY",
      "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": "FIX",
      "url": "https://github.com/jsonata-js/jsonata/commit/80ba95d170f74e3f20f4f36b8b77d8c85cea7686"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jsonata-js/jsonata/commit/d6ffc17cb16a8e53c222205bd274624e919cce0b"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jsonata-js/jsonata/pull/782"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jsonata-js/jsonata/pull/793"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "JSONata: Malicious inputs to \"$toMillis\" function can cause resource exhaustion"
}