GHSA-86vw-mfpg-wwv9

Suggest an improvement
Source
https://github.com/advisories/GHSA-86vw-mfpg-wwv9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-86vw-mfpg-wwv9/GHSA-86vw-mfpg-wwv9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-86vw-mfpg-wwv9
Aliases
  • CVE-2026-52746
Published
2026-07-02T20:13:55Z
Modified
2026-07-02T20:30:10.137771082Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jsonata: Malicious inputs to "$toMillis" function can cause resource exhaustion
Details

Impact

In JSONata <v2.2.0, it is possible to craft non-matching inputs to the $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 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

Credit

Thank you to Doruk Tan Öztürk for disclosing this issue.

Database specific
{
    "github_reviewed_at": "2026-07-02T20:13:55Z",
    "cwe_ids": [
        "CWE-1333"
    ],
    "severity": "HIGH",
    "nvd_published_at": null,
    "github_reviewed": true
}
References

Affected packages

npm / jsonata

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-86vw-mfpg-wwv9/GHSA-86vw-mfpg-wwv9.json"